SecurityCenterSample.xaml
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:10k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. <Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
  2.     <Grid x:Name="LayoutRoot" TextBlock.FontQuality="ClearType">
  3.         <Grid.RowDefinitions>
  4.             <RowDefinition Height="Auto"/>
  5.             <RowDefinition Height="*"/>
  6.             <RowDefinition Height="Auto"/>
  7.         </Grid.RowDefinitions>
  8.         <StackPanel >
  9.             <Border >
  10.                 <Border.Background>
  11.                     <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
  12.                         <GradientStop Color="#FF0134CD" Offset="0"/>
  13.                         <GradientStop Color="#FF3265FE" Offset="1"/>
  14.                     </LinearGradientBrush>
  15.                 </Border.Background>
  16.                 <StackPanel Margin = "0, 6, 20, 6">
  17.                     <TextBlock HorizontalAlignment="Right" Text="Security Center" FontSize="26" Foreground="#FFFFFFFF"/>
  18. <TextBlock HorizontalAlignment="Right" Text="Help protect your PC" FontSize="13" Foreground="#FFFFFFFF"/>
  19. </StackPanel>
  20.             </Border>
  21.             <Rectangle Height="4">
  22.                 <Rectangle.Fill>
  23.                     <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
  24.                         <GradientStop Color="#FF74A1FF" Offset="0"/>
  25.                         <GradientStop Color="#FF74A1FF" Offset="1"/>
  26.                         <GradientStop Color="#FFCDDDFF" Offset="0.5"/>
  27.                     </LinearGradientBrush>
  28.                 </Rectangle.Fill>
  29.             </Rectangle>
  30.         </StackPanel>
  31.         <Grid Grid.Row="1">
  32.             <Grid.ColumnDefinitions>
  33.                 <ColumnDefinition Width="240"/>
  34.                 <ColumnDefinition Width="*"/>
  35.             </Grid.ColumnDefinitions>
  36.             <Border Background="#FFEFF3FE">
  37.                 <Border Margin="16, 25, 16, 25" VerticalAlignment="Top" BorderThickness="1" BorderBrush="#799eda">
  38.                     <Grid>
  39.                         <Grid.RowDefinitions>
  40.                             <RowDefinition Height="Auto"/>
  41.                             <RowDefinition Height="*"/>
  42.                         </Grid.RowDefinitions>
  43.                         <Border BorderThickness="0, 0, 0, 1" BorderBrush="#799eda">
  44.                             <Border.Background>
  45.                                 <LinearGradientBrush EndPoint="1, 0.5" StartPoint="0, 0.5">
  46.                                     <GradientStop Color="#FFCDDCFE" Offset="0"/>
  47.                                     <GradientStop Color="#FFEDF2FE" Offset="1"/>
  48.                                 </LinearGradientBrush>
  49.                             </Border.Background>
  50.                             <TextBlock Text="Resources" Foreground="#FF636366" FontWeight="Bold" FontSize="14" Margin="12,2,0,2"/>
  51. </Border>
  52.                         <Border Grid.Row="1" Background="White">
  53.                             <StackPanel Margin="6">
  54.                                 <TextBlock Margin="5" TextWrapping="Wrap"><Hyperlink Foreground="#2118d5"><Run>Get the latest security and virus information from Microsoft</Run></Hyperlink></TextBlock>
  55.                                 <TextBlock Margin="5" TextWrapping="Wrap"><Hyperlink Foreground="#2118d5"><Run>Check for the latest updates from Windows Update</Run></Hyperlink></TextBlock>
  56.                                 <TextBlock Margin="5" TextWrapping="Wrap"><Hyperlink Foreground="#2118d5"><Run>Get support for secutity-related issues</Run></Hyperlink></TextBlock>
  57.                                 <TextBlock Margin="5" TextWrapping="Wrap"><Hyperlink Foreground="#2118d5"><Run>Get help about Security Center</Run></Hyperlink></TextBlock>
  58.                                 <TextBlock Margin="5" TextWrapping="Wrap"><Hyperlink Foreground="#2118d5"><Run>Change the way Security Center alerts me</Run></Hyperlink></TextBlock>
  59.                             </StackPanel>
  60.                         </Border>
  61.                     </Grid>
  62.                 </Border>
  63.             </Border>
  64. <ScrollViewer Grid.Column="1" VerticalScrollBarVisibility="Auto">
  65.             <StackPanel Margin="8, 12, 10, 8">
  66.                 <TextBlock FontSize="17" Text="Security essentials"/>
  67. <TextBlock TextWrapping="Wrap" Margin="0, 4, 0, 0"><Run>Security Center helps you manage your Windows security settings. To Help protext your computer,
  68. make sure the three security essentials are marked ON. If the settings are not ON, follow the recommendations.
  69. To return to the Security Center later, open Control Panel.</Run></TextBlock>
  70. <TextBlock TextWrapping="Wrap"><Hyperlink>What's new in Windows to help protect my computer?</Hyperlink></TextBlock>
  71. <Border Cursor="Hand" MouseLeftButtonDown="ToggleNextControl" Margin="0, 16, 0, 0" BorderThickness="1" BorderBrush="#bdcaea">
  72. <Border.Background>
  73. <LinearGradientBrush EndPoint="1, 0.5" StartPoint="0, 0.5">
  74. <GradientStop Color="#c3d6ff" Offset="0"/>
  75. <GradientStop Color="#eef2ff" Offset="1"/>
  76. </LinearGradientBrush>
  77. </Border.Background>
  78. <Grid>
  79. <Grid.ColumnDefinitions>
  80. <ColumnDefinition Width="*"/>
  81. <ColumnDefinition Width="Auto"/>
  82. </Grid.ColumnDefinitions>
  83. <TextBlock Text="Firewall" Foreground="#30486e" FontSize="18" Margin="12,2,2,2"/>
  84. <TextBlock Grid.Column="1" Text="ON" Foreground="#047c05" FontSize="18" Margin="2,2,12,2"/>
  85. </Grid>
  86. </Border>
  87. <Border  Margin="0, 0, 0, 0" BorderThickness="1, 0, 1, 1" BorderBrush="#bdcaea" Background="#eff3ff">
  88. <TextBlock TextWrapping="Wrap" Margin="12, 4, 12, 4"><Run>Windows Firewall is ON. Windows Firewall help protected your computer
  89. against viruses and other security threats</Run> 
  90. <Hyperlink>How does a firewall help protect my computer?</Hyperlink></TextBlock>
  91. </Border>
  92.                 
  93.                        <Border Cursor="Hand" MouseLeftButtonDown="ToggleNextControl" Margin="0, 16, 0, 0" BorderThickness="1" BorderBrush="#e7c597">
  94. <Border.Background>
  95. <LinearGradientBrush EndPoint="1, 0.5" StartPoint="0, 0.5">
  96. <GradientStop Color="#f1c714" Offset="0"/>
  97. <GradientStop Color="#fff4df" Offset="1"/>
  98. </LinearGradientBrush>
  99. </Border.Background>
  100. <Grid>
  101. <Grid.ColumnDefinitions>
  102. <ColumnDefinition Width="*"/>
  103. <ColumnDefinition Width="Auto"/>
  104. </Grid.ColumnDefinitions>
  105. <TextBlock Text="Automatic Updates" Foreground="#30486e" FontSize="18" Margin="12,2,2,2"/>
  106. <TextBlock Grid.Column="1" Text="CHECK SETTINGS" Foreground="#705c33" FontSize="18" Margin="2,2,12,2"/>
  107. </Grid>
  108. </Border>
  109. <Border Margin="0, 0, 0, 0" BorderThickness="1, 0, 1, 1" BorderBrush="#e7c597" Background="#fff5e3">
  110.                         <StackPanel>
  111.     <TextBlock TextWrapping="Wrap" Margin="12, 4, 12, 4"><Run>Automatic Updates is set up to download and install updates only
  112.     after checking with you. Click Turn on Automatic Updates to have Windows automatically keep you computer current with 
  113.                         important updates (recommended). </Run> 
  114.     <Hyperlink>How does Automatic Update help protect my computer?</Hyperlink></TextBlock>
  115.                         
  116.                         <Button HorizontalAlignment="Right" Margin="12, 4, 12, 4">Turn on Automatic Updates</Button>
  117.                     </StackPanel>
  118. </Border> 
  119.                 
  120.                         <Border Cursor="Hand" MouseLeftButtonDown="ToggleNextControl" Margin="0, 16, 0, 0" BorderThickness="1" BorderBrush="#e7c597">
  121. <Border.Background>
  122. <LinearGradientBrush EndPoint="1, 0.5" StartPoint="0, 0.5">
  123. <GradientStop Color="#cc3501" Offset="0"/>
  124. <GradientStop Color="#fdeedf" Offset="1"/>
  125. </LinearGradientBrush>
  126. </Border.Background>
  127. <Grid>
  128. <Grid.ColumnDefinitions>
  129. <ColumnDefinition Width="*"/>
  130. <ColumnDefinition Width="Auto"/>
  131. </Grid.ColumnDefinitions>
  132. <TextBlock Text="Virus Protection" Foreground="#ffffff" FontSize="18" Margin="12,2,2,2"/>
  133. <TextBlock Grid.Column="1" Text="OFF" Foreground="#ba4b14" FontSize="18" Margin="2,2,12,2"/>
  134. </Grid>
  135. </Border>
  136. <Border  Margin="0, 0, 0, 0" BorderThickness="1, 0, 1, 1" BorderBrush="#e7c597" Background="#fff5e7">
  137. <StackPanel>
  138.                         <TextBlock TextWrapping="Wrap" Margin="12, 4, 12, 4"><Run>Antivirus software help protect your computer agains viruses
  139.     and other security threats. Click Recommendations for suggested actions you can take.</Run> 
  140.     <Hyperlink>How does antivirus software help protect my computer?</Hyperlink></TextBlock>
  141.                         
  142.                         <TextBlock TextWrapping="Wrap" Margin="12, 4, 12, 4">Note: Windows does not detect all antivirus programs.</TextBlock>
  143.                         
  144.                         <Button Margin="12, 4, 12, 4" HorizontalAlignment="Right">Recommendations...</Button>
  145.                        </StackPanel>
  146. </Border> 
  147. <TextBlock Margin="0, 12, 12, 4" Foreground="#1e3962" FontSize="19" Text="Manage Security Settings for:"/>
  148. <WrapPanel TextBlock.FontSize="15">
  149. <TextBlock Margin="10"><Hyperlink>Internet Options</Hyperlink></TextBlock>
  150. <TextBlock Margin="10"><Hyperlink>Windows Firewall</Hyperlink></TextBlock>
  151. <TextBlock Margin="10"><Hyperlink>Automatic Updates</Hyperlink></TextBlock>
  152. </WrapPanel>
  153. </StackPanel>
  154. </ScrollViewer>
  155.         </Grid>
  156.         <Border Grid.Row="2" Background="#FF0342C6">
  157.             <TextBlock Foreground="#FFFFFFFF" Margin="8,3,8,3"><Run>At Microsoft, we care about your privacy.</Run> <Underline Cursor="Hand">Please read our privacy statement</Underline></TextBlock>
  158. </Border>
  159.     </Grid>
  160. </Page>