1<phone:PhoneApplicationPage x:Class="PhoneXamlDirect3DApp1.MainPage" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 4 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 5 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 6 xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" 7 xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" 8 FontFamily="{StaticResource PhoneFontFamilyNormal}" 9 FontSize="{StaticResource PhoneFontSizeNormal}" 10 Foreground="{StaticResource PhoneForegroundBrush}" 11 Orientation="Portrait" 12 SupportedOrientations="Portrait" 13 shell:SystemTray.IsVisible="True" 14 mc:Ignorable="d"> 15 16 <!-- LayoutRoot is the root grid where all page content is placed --> 17 <Grid x:Name="LayoutRoot" Background="Transparent"> 18 <DrawingSurface x:Name="DrawingSurface" Loaded="DrawingSurface_Loaded" /> 19 <StackPanel Margin="40"> 20 <RadioButton x:Name="Normal" 21 Checked="RadioButton_Checked" 22 Content="Normal" 23 GroupName="Group1" 24 IsChecked="True" /> 25 <RadioButton x:Name="Gray" 26 Checked="RadioButton_Checked" 27 Content="Gray" 28 GroupName="Group1" /> 29 <RadioButton x:Name="Canny" 30 Checked="RadioButton_Checked" 31 Content="Canny" 32 GroupName="Group1" /> 33 <RadioButton x:Name="Sepia" 34 Checked="RadioButton_Checked" 35 Content="Sepia" 36 GroupName="Group1" /> 37 <RadioButton x:Name="Features" 38 Checked="RadioButton_Checked" 39 Content="Features" 40 GroupName="Group1" /> 41 42 <StackPanel Margin="20,0,0,0" Orientation="Horizontal"> 43 <TextBlock Text="Memory: " /> 44 <TextBlock x:Name="MemoryTextBlock" /> 45 <TextBlock Text=" MB" /> 46 </StackPanel> 47 <StackPanel Margin="20,0,0,0" Orientation="Horizontal"> 48 <TextBlock Text="Peak Memory: " /> 49 <TextBlock x:Name="PeakMemoryTextBlock" /> 50 <TextBlock Text=" MB" /> 51 52 </StackPanel> 53 </StackPanel> 54 </Grid> 55 56</phone:PhoneApplicationPage>