01.
<
phone:PhoneApplicationPage
02.
x:Class
=
"myPhoneApp.MainPage"
05.
xmlns:phone
=
"clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
06.
xmlns:shell
=
"clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
09.
mc:Ignorable
=
"d"
10.
FontFamily
=
"{StaticResource PhoneFontFamilyNormal}"
11.
FontSize
=
"{StaticResource PhoneFontSizeNormal}"
12.
Foreground
=
"{StaticResource PhoneForegroundBrush}"
13.
SupportedOrientations
=
"Portrait"
Orientation
=
"Portrait"
14.
shell:SystemTray.IsVisible
=
"True"
>
15.
16.
17.
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"Transparent"
>
18.
<
Grid.RowDefinitions
>
19.
<
RowDefinition
Height
=
"Auto"
/>
20.
<
RowDefinition
Height
=
"*"
/>
21.
</
Grid.RowDefinitions
>
22.
23.
24.
<
StackPanel
x:Name
=
"TitlePanel"
Grid.Row
=
"0"
Margin
=
"12,17,0,28"
>
25.
<
TextBlock
Text
=
"MY APPLICATION"
Style
=
"{StaticResource PhoneTextNormalStyle}"
Margin
=
"12,0"
/>
26.
<
TextBlock
Text
=
"ThaiCrate.Com"
Margin
=
"9,-7,0,0"
Style
=
"{StaticResource PhoneTextTitle1Style}"
FontSize
=
"45"
/>
27.
</
StackPanel
>
28.
29.
30.
<
Grid
x:Name
=
"ContentPanel"
Grid.Row
=
"1"
Margin
=
"12,0,12,0"
>
31.
32.
<
phone:LongListSelector
Grid.Row
=
"4"
Grid.ColumnSpan
=
"2"
Name
=
"myListItems"
>
33.
<
phone:LongListSelector.ItemTemplate
>
34.
<
DataTemplate
>
35.
36.
<
StackPanel
Orientation
=
"Horizontal"
Margin
=
"0,0,0,17"
>
37.
<
StackPanel
Width
=
"50"
>
38.
<
TextBlock
Text
=
"{Binding Id}"
TextWrapping
=
"Wrap"
Margin
=
"5,0,0,0"
Style
=
"{StaticResource PhoneTextSubtleStyle}"
/>
39.
</
StackPanel
>
40.
<
StackPanel
Width
=
"80"
>
41.
<
TextBlock
Text
=
"{Binding Name}"
TextWrapping
=
"Wrap"
Margin
=
"5,0,0,0"
Style
=
"{StaticResource PhoneTextSubtleStyle}"
/>
42.
</
StackPanel
>
43.
<
StackPanel
Width
=
"250"
>
44.
<
TextBlock
Text
=
"{Binding Email}"
TextWrapping
=
"Wrap"
Margin
=
"5,0,0,0"
Style
=
"{StaticResource PhoneTextSubtleStyle}"
/>
45.
</
StackPanel
>
46.
<
StackPanel
Width
=
"50"
>
47.
<
TextBlock
Text
=
"{Binding Status}"
TextWrapping
=
"Wrap"
Margin
=
"5,0,0,0"
Style
=
"{StaticResource PhoneTextSubtleStyle}"
/>
48.
</
StackPanel
>
49.
</
StackPanel
>
50.
51.
</
DataTemplate
>
52.
</
phone:LongListSelector.ItemTemplate
>
53.
</
phone:LongListSelector
>
54.
55.
</
Grid
>
56.
57.
</
Grid
>
58.
59.
</
phone:PhoneApplicationPage
>