source: 2014/24/EemeliK/Zombieland/Jypeli/JyStorage/SilverlightTest/ListPage.xaml @ 5974

Revision 5974, 3.7 KB checked in by empaheik, 4 years ago (diff)
Line 
1<phone:PhoneApplicationPage
2    x:Class="SilverStorageTest.ListPage"
3    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
6    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
7    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
8    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9    FontFamily="{StaticResource PhoneFontFamilyNormal}"
10    FontSize="{StaticResource PhoneFontSizeNormal}"
11    Foreground="{StaticResource PhoneForegroundBrush}"
12    SupportedOrientations="Portrait" Orientation="Portrait"
13    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
14    shell:SystemTray.IsVisible="True">
15
16    <!--LayoutRoot is the root grid where all page content is placed-->
17    <Grid x:Name="LayoutRoot" Background="Transparent">
18        <Grid.RowDefinitions>
19            <RowDefinition Height="Auto"/>
20            <RowDefinition Height="*"/>
21        </Grid.RowDefinitions>
22
23        <!--TitlePanel contains the name of the application and page title-->
24        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
25            <TextBlock x:Name="ApplicationTitle" Text="DATASTORAGE" Style="{StaticResource PhoneTextNormalStyle}"/>
26            <TextBlock x:Name="PageTitle" Text="list test" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
27        </StackPanel>
28
29        <!--ContentPanel - place additional content here-->
30        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
31            <ListBox Height="325" HorizontalAlignment="Left" Margin="0,6,0,0" Name="listBox" VerticalAlignment="Top" Width="460" />
32            <TextBox Height="72" HorizontalAlignment="Left" Margin="0,337,0,0" Name="textBox" Text="TextBox" VerticalAlignment="Top" Width="361" />
33            <Button Content="Add" Height="72" HorizontalAlignment="Left" Margin="343,337,0,0" Name="buttonAddText" VerticalAlignment="Top" Width="107" Click="buttonAddText_Click" />
34            <Button Content="Load" Height="72" HorizontalAlignment="Left" Margin="6,512,0,0" Name="buttonLoad" VerticalAlignment="Top" Width="160" Click="buttonLoad_Click" />
35            <TextBox Height="72" HorizontalAlignment="Left" Margin="0,455,0,0" Name="textFileName" Text="list.xml" VerticalAlignment="Top" Width="460" />
36            <Button Content="Save" Height="72" HorizontalAlignment="Left" Margin="147,512,0,0" Name="buttonSave" VerticalAlignment="Top" Width="160" Click="buttonSave_Click" />
37            <Button Content="Delete" Height="72" HorizontalAlignment="Right" Margin="0,512,6,0" Name="buttonDelete" VerticalAlignment="Top" Width="160" Click="buttonDelete_Click" />
38            <Button Content="Clear list" Height="72" HorizontalAlignment="Left" Margin="147,397,0,0" Name="buttonClear" VerticalAlignment="Top" Width="160" Click="buttonClear_Click" />
39        </Grid>
40    </Grid>
41 
42    <!--Sample code showing usage of ApplicationBar-->
43    <!--<phone:PhoneApplicationPage.ApplicationBar>
44        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
45            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
46            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
47            <shell:ApplicationBar.MenuItems>
48                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
49                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
50            </shell:ApplicationBar.MenuItems>
51        </shell:ApplicationBar>
52    </phone:PhoneApplicationPage.ApplicationBar>-->
53
54</phone:PhoneApplicationPage>
Note: See TracBrowser for help on using the repository browser.