Advertisement
benhurrus

flash(light) Settings.xaml

Dec 12th, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.28 KB | None | 0 0
  1. <phone:PhoneApplicationPage
  2.    x:Class="flashlight.Settings"
  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.    xmlns:local="clr-namespace:flashlightSettings"
  10.    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
  11.    xmlns:primitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls.Toolkit"
  12.    FontFamily="{StaticResource PhoneFontFamilyNormal}"
  13.    FontSize="{StaticResource PhoneFontSizeNormal}"
  14.    Foreground="{StaticResource PhoneForegroundBrush}"
  15.    SupportedOrientations="Portrait" Orientation="Portrait"
  16.    mc:Ignorable="d"
  17.    shell:SystemTray.IsVisible="True">
  18.  
  19.     <phone:PhoneApplicationPage.Resources>
  20.         <local:AppSettings x:Key="appSettings"></local:AppSettings>
  21.     </phone:PhoneApplicationPage.Resources>
  22.  
  23.  
  24.     <!--LayoutRoot is the root grid where all page content is placed-->
  25.     <Grid x:Name="LayoutRoot" Background="Transparent">
  26.         <Grid.RowDefinitions>
  27.             <RowDefinition Height="Auto"/>
  28.             <RowDefinition Height="*"/>
  29.         </Grid.RowDefinitions>
  30.  
  31.         <!--TitlePanel contains the name of the application and page title-->
  32.         <StackPanel Grid.Row="0" Margin="12,17,0,28">
  33.             <TextBlock Text="flash(light)" Style="{StaticResource PhoneTextNormalStyle}"/>
  34.             <TextBlock Text="settings" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
  35.         </StackPanel>
  36.  
  37.         <!--ContentPanel - place additional content here-->
  38.         <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
  39.             <toolkit:ToggleSwitch  Content="Night Mode" Height="104" Width="453" HorizontalAlignment="Left" Margin="0,0,0,0" Name="checkBoxSetting" VerticalAlignment="Top"
  40.            IsChecked="{Binding Source={StaticResource appSettings}, Path=CheckBoxSetting, Mode=TwoWay}"  />
  41.         </Grid>
  42.     </Grid>
  43.  
  44. </phone:PhoneApplicationPage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement