
13 changed files with 1788 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<configuration> |
||||
|
<startup> |
||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> |
||||
|
</startup> |
||||
|
</configuration> |
@ -0,0 +1,9 @@ |
|||||
|
<Application x:Class="Windows_10_Setup_Script.App" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:local="clr-namespace:Windows_10_Setup_Script" |
||||
|
StartupUri="MainWindow.xaml"> |
||||
|
<Application.Resources> |
||||
|
|
||||
|
</Application.Resources> |
||||
|
</Application> |
@ -0,0 +1,17 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Configuration; |
||||
|
using System.Data; |
||||
|
using System.Linq; |
||||
|
using System.Threading.Tasks; |
||||
|
using System.Windows; |
||||
|
|
||||
|
namespace Windows_10_Setup_Script |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Логика взаимодействия для App.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class App : Application |
||||
|
{ |
||||
|
} |
||||
|
} |
@ -0,0 +1,661 @@ |
|||||
|
<Window x:Class="Windows_10_Setup_Script.MainWindow" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
mc:Ignorable="d" |
||||
|
Title="Win10 Setup Script" Height="800" Width="800" FontSize="16" TextOptions.TextFormattingMode="Display" |
||||
|
ShowInTaskbar="False" WindowStartupLocation="CenterScreen" SnapsToDevicePixels="True"> |
||||
|
<Window.Resources> |
||||
|
|
||||
|
<!--#region Brushes --> |
||||
|
|
||||
|
<SolidColorBrush x:Key="RadioButton.Static.Background" Color="#FFFFFFFF"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Static.Border" Color="#FF333333"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Static.Glyph" Color="#FF333333"/> |
||||
|
|
||||
|
<SolidColorBrush x:Key="RadioButton.MouseOver.Background" Color="#FFFFFFFF"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.MouseOver.Border" Color="#FF000000"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.MouseOver.Glyph" Color="#FF000000"/> |
||||
|
|
||||
|
<SolidColorBrush x:Key="RadioButton.MouseOver.On.Background" Color="#FF4C91C8"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.MouseOver.On.Border" Color="#FF4C91C8"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.MouseOver.On.Glyph" Color="#FFFFFFFF"/> |
||||
|
|
||||
|
<SolidColorBrush x:Key="RadioButton.Disabled.Background" Color="#FFFFFFFF"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Disabled.Border" Color="#FF999999"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Disabled.Glyph" Color="#FF999999"/> |
||||
|
|
||||
|
<SolidColorBrush x:Key="RadioButton.Disabled.On.Background" Color="#FFCCCCCC"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Disabled.On.Border" Color="#FFCCCCCC"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Disabled.On.Glyph" Color="#FFA3A3A3"/> |
||||
|
|
||||
|
<SolidColorBrush x:Key="RadioButton.Pressed.Background" Color="#FF999999"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Pressed.Border" Color="#FF999999"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Pressed.Glyph" Color="#FFFFFFFF"/> |
||||
|
|
||||
|
<SolidColorBrush x:Key="RadioButton.Checked.Background" Color="#FF0063B1"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Checked.Border" Color="#FF0063B1"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Checked.Glyph" Color="#FFFFFFFF"/> |
||||
|
|
||||
|
<!--#endregion--> |
||||
|
|
||||
|
<Style x:Key="ToggleSwitchTopStyle" TargetType="{x:Type ToggleButton}"> |
||||
|
<Setter Property="Background" Value="{StaticResource RadioButton.Static.Background}"/> |
||||
|
<Setter Property="BorderBrush" Value="{StaticResource RadioButton.Static.Border}"/> |
||||
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/> |
||||
|
<Setter Property="HorizontalContentAlignment" Value="Left"/> |
||||
|
<Setter Property="BorderThickness" Value="1"/> |
||||
|
<Setter Property="SnapsToDevicePixels" Value="True"/> |
||||
|
<Setter Property="FocusVisualStyle" Value="{x:Null}"/> |
||||
|
<Setter Property="Template"> |
||||
|
<Setter.Value> |
||||
|
<ControlTemplate TargetType="{x:Type ToggleButton}"> |
||||
|
<Grid x:Name="templateRoot" |
||||
|
Background="Transparent" |
||||
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> |
||||
|
<VisualStateManager.VisualStateGroups> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal"/> |
||||
|
<VisualState x:Name="MouseOver"> |
||||
|
<Storyboard> |
||||
|
<DoubleAnimation To="0" Duration="0:0:0.2" Storyboard.TargetName="normalBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<DoubleAnimation To="1" Duration="0:0:0.2" Storyboard.TargetName="hoverBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0:0:0.2"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMarkOn" Storyboard.TargetProperty="Fill" Duration="0:0:0.2"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.On.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
<VisualState x:Name="Pressed"> |
||||
|
<Storyboard> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="pressedBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Pressed.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<Storyboard> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="checkedBorder" Storyboard.TargetProperty="BorderBrush"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Border}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="checkedBorder" Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Background}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMarkOn" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
<VisualStateGroup x:Name="CheckStates"> |
||||
|
<VisualState x:Name="Unchecked"/> |
||||
|
<VisualState x:Name="Checked"> |
||||
|
<Storyboard> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Static.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<DoubleAnimationUsingKeyFrames Duration="0:0:0.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="optionMark"> |
||||
|
<EasingDoubleKeyFrame KeyTime="0" Value="12"/> |
||||
|
</DoubleAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Checked.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="hoverBorder" Storyboard.TargetProperty="BorderBrush"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.On.Border}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="hoverBorder" Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.On.Background}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="optionMarkOn" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="checkedBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="BorderBrush"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Border}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Background}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
<VisualState x:Name="Indeterminate"/> |
||||
|
</VisualStateGroup> |
||||
|
<VisualStateGroup x:Name="FocusStates"> |
||||
|
<VisualState x:Name="Unfocused"/> |
||||
|
<VisualState x:Name="Focused"/> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateManager.VisualStateGroups> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition /> |
||||
|
<RowDefinition Height="Auto"/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<ContentPresenter x:Name="contentPresenter" |
||||
|
Focusable="False" RecognizesAccessKey="True" |
||||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
||||
|
Margin="{TemplateBinding Padding}" |
||||
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
||||
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> |
||||
|
<Grid x:Name="markGrid" Grid.Row="1" Margin="0 8 0 2" Width="44" Height="20" |
||||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"> |
||||
|
<Border x:Name="normalBorder" Opacity="1" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{TemplateBinding BorderBrush}" Background="{StaticResource RadioButton.Static.Background}"/> |
||||
|
<Border x:Name="checkedBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.Checked.Border}" Background="{StaticResource RadioButton.Checked.Background}"/> |
||||
|
<Border x:Name="hoverBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.MouseOver.Border}" Background="{StaticResource RadioButton.MouseOver.Background}"/> |
||||
|
<Border x:Name="pressedBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.Pressed.Border}" Background="{StaticResource RadioButton.Pressed.Background}"/> |
||||
|
<Border x:Name="disabledBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.Disabled.Border}" Background="{StaticResource RadioButton.Disabled.Background}"/> |
||||
|
<Ellipse x:Name="optionMark" |
||||
|
Height="10" Width="10" Fill="{StaticResource RadioButton.Static.Glyph}" StrokeThickness="0" |
||||
|
VerticalAlignment="Center" Margin="5,0" RenderTransformOrigin="0.5,0.5"> |
||||
|
<Ellipse.RenderTransform> |
||||
|
<TransformGroup> |
||||
|
<ScaleTransform/> |
||||
|
<SkewTransform/> |
||||
|
<RotateTransform/> |
||||
|
<TranslateTransform X="-12"/> |
||||
|
</TransformGroup> |
||||
|
</Ellipse.RenderTransform> |
||||
|
</Ellipse> |
||||
|
<Ellipse x:Name="optionMarkOn" Opacity="0" |
||||
|
Height="10" Width="10" Fill="{StaticResource RadioButton.Checked.Glyph}" StrokeThickness="0" |
||||
|
VerticalAlignment="Center" Margin="5,0" RenderTransformOrigin="0.5,0.5"> |
||||
|
<Ellipse.RenderTransform> |
||||
|
<TransformGroup> |
||||
|
<ScaleTransform/> |
||||
|
<SkewTransform/> |
||||
|
<RotateTransform/> |
||||
|
<TranslateTransform X="12"/> |
||||
|
</TransformGroup> |
||||
|
</Ellipse.RenderTransform> |
||||
|
</Ellipse> |
||||
|
</Grid> |
||||
|
</Grid> |
||||
|
</ControlTemplate> |
||||
|
</Setter.Value> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style x:Key="ToggleSwitchLeftStyle" TargetType="{x:Type ToggleButton}"> |
||||
|
<Setter Property="Background" Value="{StaticResource RadioButton.Static.Background}"/> |
||||
|
<Setter Property="BorderBrush" Value="{StaticResource RadioButton.Static.Border}"/> |
||||
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/> |
||||
|
<Setter Property="HorizontalContentAlignment" Value="Left"/> |
||||
|
<Setter Property="BorderThickness" Value="1"/> |
||||
|
<Setter Property="SnapsToDevicePixels" Value="True"/> |
||||
|
<Setter Property="FocusVisualStyle" Value="{x:Null}"/> |
||||
|
<Setter Property="Template"> |
||||
|
<Setter.Value> |
||||
|
<ControlTemplate TargetType="{x:Type ToggleButton}"> |
||||
|
<Grid x:Name="templateRoot" |
||||
|
Background="Transparent" |
||||
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> |
||||
|
<VisualStateManager.VisualStateGroups> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal"/> |
||||
|
<VisualState x:Name="MouseOver"> |
||||
|
<Storyboard> |
||||
|
<DoubleAnimation To="0" Duration="0:0:0.2" Storyboard.TargetName="normalBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<DoubleAnimation To="1" Duration="0:0:0.2" Storyboard.TargetName="hoverBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0:0:0.2"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMarkOn" Storyboard.TargetProperty="Fill" Duration="0:0:0.2"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.On.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
<VisualState x:Name="Pressed"> |
||||
|
<Storyboard> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="pressedBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Pressed.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<Storyboard> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="checkedBorder" Storyboard.TargetProperty="BorderBrush"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Border}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="checkedBorder" Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Background}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMarkOn" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
<VisualStateGroup x:Name="CheckStates"> |
||||
|
<VisualState x:Name="Unchecked"/> |
||||
|
<VisualState x:Name="Checked"> |
||||
|
<Storyboard> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Static.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<DoubleAnimationUsingKeyFrames Duration="0:0:0.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="optionMark"> |
||||
|
<EasingDoubleKeyFrame KeyTime="0" Value="12"/> |
||||
|
</DoubleAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Checked.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="hoverBorder" Storyboard.TargetProperty="BorderBrush"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.On.Border}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="hoverBorder" Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.On.Background}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="optionMarkOn" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="checkedBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="BorderBrush"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Border}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Background}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
<VisualState x:Name="Indeterminate"/> |
||||
|
</VisualStateGroup> |
||||
|
<VisualStateGroup x:Name="FocusStates"> |
||||
|
<VisualState x:Name="Unfocused"/> |
||||
|
<VisualState x:Name="Focused"/> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateManager.VisualStateGroups> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition /> |
||||
|
<ColumnDefinition Width="Auto"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<ContentPresenter x:Name="contentPresenter" |
||||
|
Focusable="False" RecognizesAccessKey="True" |
||||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
||||
|
Margin="{TemplateBinding Padding}" |
||||
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
||||
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> |
||||
|
<Grid x:Name="markGrid" Grid.Column="1" Margin="8 0 0 0" Width="44" Height="20" |
||||
|
VerticalAlignment="Center" |
||||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"> |
||||
|
<Border x:Name="normalBorder" Opacity="1" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{TemplateBinding BorderBrush}" Background="{StaticResource RadioButton.Static.Background}"/> |
||||
|
<Border x:Name="checkedBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.Checked.Border}" Background="{StaticResource RadioButton.Checked.Background}"/> |
||||
|
<Border x:Name="hoverBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.MouseOver.Border}" Background="{StaticResource RadioButton.MouseOver.Background}"/> |
||||
|
<Border x:Name="pressedBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.Pressed.Border}" Background="{StaticResource RadioButton.Pressed.Background}"/> |
||||
|
<Border x:Name="disabledBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.Disabled.Border}" Background="{StaticResource RadioButton.Disabled.Background}"/> |
||||
|
<Ellipse x:Name="optionMark" |
||||
|
Height="10" Width="10" Fill="{StaticResource RadioButton.Static.Glyph}" StrokeThickness="0" |
||||
|
VerticalAlignment="Center" Margin="5,0" RenderTransformOrigin="0.5,0.5"> |
||||
|
<Ellipse.RenderTransform> |
||||
|
<TransformGroup> |
||||
|
<ScaleTransform/> |
||||
|
<SkewTransform/> |
||||
|
<RotateTransform/> |
||||
|
<TranslateTransform X="-12"/> |
||||
|
</TransformGroup> |
||||
|
</Ellipse.RenderTransform> |
||||
|
</Ellipse> |
||||
|
<Ellipse x:Name="optionMarkOn" Opacity="0" |
||||
|
Height="10" Width="10" Fill="{StaticResource RadioButton.Checked.Glyph}" StrokeThickness="0" |
||||
|
VerticalAlignment="Center" Margin="5,0" RenderTransformOrigin="0.5,0.5"> |
||||
|
<Ellipse.RenderTransform> |
||||
|
<TransformGroup> |
||||
|
<ScaleTransform/> |
||||
|
<SkewTransform/> |
||||
|
<RotateTransform/> |
||||
|
<TranslateTransform X="12"/> |
||||
|
</TransformGroup> |
||||
|
</Ellipse.RenderTransform> |
||||
|
</Ellipse> |
||||
|
</Grid> |
||||
|
</Grid> |
||||
|
</ControlTemplate> |
||||
|
</Setter.Value> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style x:Key="TextBlockStyle" TargetType="{x:Type TextBlock}"> |
||||
|
<Setter Property="FontFamily" Value="Segoe UI"/> |
||||
|
<Setter Property="TextOptions.TextFormattingMode" Value="Display"/> |
||||
|
</Style> |
||||
|
|
||||
|
<Style x:Key="ItemTitleStyle" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Margin" Value="1"/> |
||||
|
<Setter Property="FontSize" Value="16"/> |
||||
|
</Style> |
||||
|
|
||||
|
<Style x:Key="ItemSubTitleStyle" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource ItemTitleStyle}"> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=ToggleButton}, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On: Banners, Sound"/> |
||||
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=ToggleButton}, Path=IsChecked}" Value="False"> |
||||
|
<Setter Property="Text" Value="Off"/> |
||||
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
|
||||
|
<SolidColorBrush x:Key="Hover.Enter.Brush" Color="#FFF2F2F2" /> |
||||
|
<SolidColorBrush x:Key="Hover.Exit.Brush" Color="#01FFFFFF" /> |
||||
|
|
||||
|
<Storyboard x:Key="Hover.Enter.Storyboard"> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource Hover.Enter.Brush}" /> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
|
||||
|
<Storyboard x:Key="Hover.Exit.Storyboard"> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource Hover.Exit.Brush}" /> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
|
||||
|
<Style x:Key="HoverBorder" TargetType="Border"> |
||||
|
<Setter Property="BorderThickness" Value="0"/> |
||||
|
<Setter Property="Margin" Value="0 4"/> |
||||
|
<Setter Property="Padding" Value="10 2"/> |
||||
|
<Style.Triggers> |
||||
|
<EventTrigger RoutedEvent="Mouse.MouseEnter"> |
||||
|
<BeginStoryboard Storyboard="{StaticResource Hover.Enter.Storyboard}" /> |
||||
|
</EventTrigger> |
||||
|
<EventTrigger RoutedEvent="Mouse.MouseLeave"> |
||||
|
<BeginStoryboard Storyboard="{StaticResource Hover.Exit.Storyboard}" /> |
||||
|
</EventTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
|
||||
|
<Style x:Key="IconBorder" TargetType="Border"> |
||||
|
<Setter Property="BorderThickness" Value="0"/> |
||||
|
<Setter Property="Margin" Value="0 0 10 0"/> |
||||
|
<Setter Property="Padding" Value="4"/> |
||||
|
<Setter Property="Width" Value="40"/> |
||||
|
<Setter Property="Height" Value="40"/> |
||||
|
<Setter Property="Background" Value="{StaticResource RadioButton.Checked.Background}"/> |
||||
|
</Style> |
||||
|
|
||||
|
</Window.Resources> |
||||
|
|
||||
|
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"> |
||||
|
<Grid ShowGridLines="True"> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="20"/> |
||||
|
<ColumnDefinition Width="520"/> |
||||
|
<ColumnDefinition Width="20"/> |
||||
|
<ColumnDefinition Width="240"/> |
||||
|
<ColumnDefinition Width="20"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<!--#region Setting Panels--> |
||||
|
<StackPanel Orientation="Vertical" Grid.Column="1"> |
||||
|
<!--#region Privacy & Telemetry Setting--> |
||||
|
<StackPanel Orientation="Horizontal" Height="40"> |
||||
|
<Viewbox Width="24" Height="24" VerticalAlignment="Center"> |
||||
|
<Path Data="M12 5.69L17 10.19V18H15V12H9V18H7V10.19L12 5.69M12 3L2 12H5V20H11V14H13V20H19V12H22L12 3Z" Fill="Black" /> |
||||
|
</Viewbox> |
||||
|
<TextBlock Text="Privacy & Telemetry" FontSize="18" FontWeight="Medium" VerticalAlignment="Center" Margin="10 0 0 0"/> |
||||
|
</StackPanel> |
||||
|
|
||||
|
<Grid Margin="0 10 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry0" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Turn off "Connected User Experiences and Telemetry" service" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry0, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry0, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry1" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Turn off per-user services" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry1, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry1, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry2" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Turn off the Autologger session at the next computer restart" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry2, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry2, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry3" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Turn off the SQMLogger session at the next computer restart" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry3, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry3, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry4" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Set the operating system diagnostic data level to "Basic"" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry4, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry4, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry5" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Turn off Windows Error Reporting" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry5, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry5, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry6" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Change Windows Feedback frequency to "Never"" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry6, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry6, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry7" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Turn off diagnostics tracking scheduled tasks" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry7, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry7, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry8" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Do not offer tailored experiences based on the diagnostic data setting" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry8, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry8, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry9" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Do not let apps on other devices open and message apps on this device" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry9, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry9, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry10" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Do not allow apps to use advertising ID" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry10, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry10, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<!--#endregion--> |
||||
|
</StackPanel> |
||||
|
<!--#endregion--> |
||||
|
</Grid> |
||||
|
</ScrollViewer> |
||||
|
</Window> |
@ -0,0 +1,28 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Windows_10_Setup_Script |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Логика взаимодействия для MainWindow.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class MainWindow : Window |
||||
|
{ |
||||
|
public MainWindow() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,55 @@ |
|||||
|
using System.Reflection; |
||||
|
using System.Resources; |
||||
|
using System.Runtime.CompilerServices; |
||||
|
using System.Runtime.InteropServices; |
||||
|
using System.Windows; |
||||
|
|
||||
|
// Общие сведения об этой сборке предоставляются следующим набором
|
||||
|
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
|
||||
|
// связанные со сборкой.
|
||||
|
[assembly: AssemblyTitle("Windows-10-Setup-Script")] |
||||
|
[assembly: AssemblyDescription("")] |
||||
|
[assembly: AssemblyConfiguration("")] |
||||
|
[assembly: AssemblyCompany("")] |
||||
|
[assembly: AssemblyProduct("Windows-10-Setup-Script")] |
||||
|
[assembly: AssemblyCopyright("Copyright © 2019")] |
||||
|
[assembly: AssemblyTrademark("")] |
||||
|
[assembly: AssemblyCulture("")] |
||||
|
|
||||
|
// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
|
||||
|
// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
|
||||
|
// COM, задайте атрибуту ComVisible значение TRUE для этого типа.
|
||||
|
[assembly: ComVisible(false)] |
||||
|
|
||||
|
//Чтобы начать создание локализуемых приложений, задайте
|
||||
|
//<UICulture>CultureYouAreCodingWith</UICulture> в файле .csproj
|
||||
|
//внутри <PropertyGroup>. Например, если используется английский США
|
||||
|
//в своих исходных файлах установите <UICulture> в en-US. Затем отмените преобразование в комментарий
|
||||
|
//атрибута NeutralResourceLanguage ниже. Обновите "en-US" в
|
||||
|
//строка внизу для обеспечения соответствия настройки UICulture в файле проекта.
|
||||
|
|
||||
|
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
|
||||
|
|
||||
|
|
||||
|
[assembly: ThemeInfo( |
||||
|
ResourceDictionaryLocation.None, //где расположены словари ресурсов по конкретным тематикам
|
||||
|
//(используется, если ресурс не найден на странице,
|
||||
|
// или в словарях ресурсов приложения)
|
||||
|
ResourceDictionaryLocation.SourceAssembly //где расположен словарь универсальных ресурсов
|
||||
|
//(используется, если ресурс не найден на странице,
|
||||
|
// в приложении или в каких-либо словарях ресурсов для конкретной темы)
|
||||
|
)] |
||||
|
|
||||
|
|
||||
|
// Сведения о версии сборки состоят из следующих четырех значений:
|
||||
|
//
|
||||
|
// Основной номер версии
|
||||
|
// Дополнительный номер версии
|
||||
|
// Номер сборки
|
||||
|
// Редакция
|
||||
|
//
|
||||
|
// Можно задать все значения или принять номер сборки и номер редакции по умолчанию.
|
||||
|
// используя "*", как показано ниже:
|
||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||
|
[assembly: AssemblyVersion("1.0.0.0")] |
||||
|
[assembly: AssemblyFileVersion("1.0.0.0")] |
@ -0,0 +1,71 @@ |
|||||
|
//------------------------------------------------------------------------------
|
||||
|
// <auto-generated>
|
||||
|
// Этот код создан программным средством.
|
||||
|
// Версия среды выполнения: 4.0.30319.42000
|
||||
|
//
|
||||
|
// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
|
||||
|
// код создан повторно.
|
||||
|
// </auto-generated>
|
||||
|
//------------------------------------------------------------------------------
|
||||
|
|
||||
|
namespace Windows_10_Setup_Script.Properties |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Класс ресурсов со строгим типом для поиска локализованных строк и пр.
|
||||
|
/// </summary>
|
||||
|
// Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder
|
||||
|
// класс с помощью таких средств, как ResGen или Visual Studio.
|
||||
|
// Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen
|
||||
|
// с параметром /str или заново постройте свой VS-проект.
|
||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] |
||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
||||
|
internal class Resources |
||||
|
{ |
||||
|
|
||||
|
private static global::System.Resources.ResourceManager resourceMan; |
||||
|
|
||||
|
private static global::System.Globalization.CultureInfo resourceCulture; |
||||
|
|
||||
|
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] |
||||
|
internal Resources() |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Возврат кэшированного экземпляра ResourceManager, используемого этим классом.
|
||||
|
/// </summary>
|
||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||
|
internal static global::System.Resources.ResourceManager ResourceManager |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
if ((resourceMan == null)) |
||||
|
{ |
||||
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Windows_10_Setup_Script.Properties.Resources", typeof(Resources).Assembly); |
||||
|
resourceMan = temp; |
||||
|
} |
||||
|
return resourceMan; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Переопределяет свойство CurrentUICulture текущего потока для всех
|
||||
|
/// подстановки ресурсов с помощью этого класса ресурсов со строгим типом.
|
||||
|
/// </summary>
|
||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||
|
internal static global::System.Globalization.CultureInfo Culture |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return resourceCulture; |
||||
|
} |
||||
|
set |
||||
|
{ |
||||
|
resourceCulture = value; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,117 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<root> |
||||
|
<!-- |
||||
|
Microsoft ResX Schema |
||||
|
|
||||
|
Version 2.0 |
||||
|
|
||||
|
The primary goals of this format is to allow a simple XML format |
||||
|
that is mostly human readable. The generation and parsing of the |
||||
|
various data types are done through the TypeConverter classes |
||||
|
associated with the data types. |
||||
|
|
||||
|
Example: |
||||
|
|
||||
|
... ado.net/XML headers & schema ... |
||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader> |
||||
|
<resheader name="version">2.0</resheader> |
||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value> |
||||
|
</data> |
||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
||||
|
<comment>This is a comment</comment> |
||||
|
</data> |
||||
|
|
||||
|
There are any number of "resheader" rows that contain simple |
||||
|
name/value pairs. |
||||
|
|
||||
|
Each data row contains a name, and value. The row also contains a |
||||
|
type or mimetype. Type corresponds to a .NET class that support |
||||
|
text/value conversion through the TypeConverter architecture. |
||||
|
Classes that don't support this are serialized and stored with the |
||||
|
mimetype set. |
||||
|
|
||||
|
The mimetype is used for serialized objects, and tells the |
||||
|
ResXResourceReader how to depersist the object. This is currently not |
||||
|
extensible. For a given mimetype the value must be set accordingly: |
||||
|
|
||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format |
||||
|
that the ResXResourceWriter will generate, however the reader can |
||||
|
read any of the formats listed below. |
||||
|
|
||||
|
mimetype: application/x-microsoft.net.object.binary.base64 |
||||
|
value : The object must be serialized with |
||||
|
: System.Serialization.Formatters.Binary.BinaryFormatter |
||||
|
: and then encoded with base64 encoding. |
||||
|
|
||||
|
mimetype: application/x-microsoft.net.object.soap.base64 |
||||
|
value : The object must be serialized with |
||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
||||
|
: and then encoded with base64 encoding. |
||||
|
|
||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64 |
||||
|
value : The object must be serialized into a byte array |
||||
|
: using a System.ComponentModel.TypeConverter |
||||
|
: and then encoded with base64 encoding. |
||||
|
--> |
||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
||||
|
<xsd:element name="root" msdata:IsDataSet="true"> |
||||
|
<xsd:complexType> |
||||
|
<xsd:choice maxOccurs="unbounded"> |
||||
|
<xsd:element name="metadata"> |
||||
|
<xsd:complexType> |
||||
|
<xsd:sequence> |
||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
||||
|
</xsd:sequence> |
||||
|
<xsd:attribute name="name" type="xsd:string" /> |
||||
|
<xsd:attribute name="type" type="xsd:string" /> |
||||
|
<xsd:attribute name="mimetype" type="xsd:string" /> |
||||
|
</xsd:complexType> |
||||
|
</xsd:element> |
||||
|
<xsd:element name="assembly"> |
||||
|
<xsd:complexType> |
||||
|
<xsd:attribute name="alias" type="xsd:string" /> |
||||
|
<xsd:attribute name="name" type="xsd:string" /> |
||||
|
</xsd:complexType> |
||||
|
</xsd:element> |
||||
|
<xsd:element name="data"> |
||||
|
<xsd:complexType> |
||||
|
<xsd:sequence> |
||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
||||
|
</xsd:sequence> |
||||
|
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> |
||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
||||
|
</xsd:complexType> |
||||
|
</xsd:element> |
||||
|
<xsd:element name="resheader"> |
||||
|
<xsd:complexType> |
||||
|
<xsd:sequence> |
||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
|
</xsd:sequence> |
||||
|
<xsd:attribute name="name" type="xsd:string" use="required" /> |
||||
|
</xsd:complexType> |
||||
|
</xsd:element> |
||||
|
</xsd:choice> |
||||
|
</xsd:complexType> |
||||
|
</xsd:element> |
||||
|
</xsd:schema> |
||||
|
<resheader name="resmimetype"> |
||||
|
<value>text/microsoft-resx</value> |
||||
|
</resheader> |
||||
|
<resheader name="version"> |
||||
|
<value>2.0</value> |
||||
|
</resheader> |
||||
|
<resheader name="reader"> |
||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
|
</resheader> |
||||
|
<resheader name="writer"> |
||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
|
</resheader> |
||||
|
</root> |
@ -0,0 +1,30 @@ |
|||||
|
//------------------------------------------------------------------------------
|
||||
|
// <auto-generated>
|
||||
|
// This code was generated by a tool.
|
||||
|
// Runtime Version:4.0.30319.42000
|
||||
|
//
|
||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
|
// the code is regenerated.
|
||||
|
// </auto-generated>
|
||||
|
//------------------------------------------------------------------------------
|
||||
|
|
||||
|
namespace Windows_10_Setup_Script.Properties |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] |
||||
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase |
||||
|
{ |
||||
|
|
||||
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |
||||
|
|
||||
|
public static Settings Default |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return defaultInstance; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,7 @@ |
|||||
|
<?xml version='1.0' encoding='utf-8'?> |
||||
|
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)"> |
||||
|
<Profiles> |
||||
|
<Profile Name="(Default)" /> |
||||
|
</Profiles> |
||||
|
<Settings /> |
||||
|
</SettingsFile> |
@ -0,0 +1,97 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
||||
|
<PropertyGroup> |
||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
||||
|
<ProjectGuid>{D5A79EFF-F519-43EE-9806-A25ED11852C9}</ProjectGuid> |
||||
|
<OutputType>WinExe</OutputType> |
||||
|
<RootNamespace>Windows_10_Setup_Script</RootNamespace> |
||||
|
<AssemblyName>Windows-10-Setup-Script</AssemblyName> |
||||
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> |
||||
|
<FileAlignment>512</FileAlignment> |
||||
|
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
<Deterministic>true</Deterministic> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
|
<PlatformTarget>AnyCPU</PlatformTarget> |
||||
|
<DebugSymbols>true</DebugSymbols> |
||||
|
<DebugType>full</DebugType> |
||||
|
<Optimize>false</Optimize> |
||||
|
<OutputPath>bin\Debug\</OutputPath> |
||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
|
<PlatformTarget>AnyCPU</PlatformTarget> |
||||
|
<DebugType>pdbonly</DebugType> |
||||
|
<Optimize>true</Optimize> |
||||
|
<OutputPath>bin\Release\</OutputPath> |
||||
|
<DefineConstants>TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<ItemGroup> |
||||
|
<Reference Include="System" /> |
||||
|
<Reference Include="System.Data" /> |
||||
|
<Reference Include="System.Xml" /> |
||||
|
<Reference Include="Microsoft.CSharp" /> |
||||
|
<Reference Include="System.Core" /> |
||||
|
<Reference Include="System.Xml.Linq" /> |
||||
|
<Reference Include="System.Data.DataSetExtensions" /> |
||||
|
<Reference Include="System.Net.Http" /> |
||||
|
<Reference Include="System.Xaml"> |
||||
|
<RequiredTargetFramework>4.0</RequiredTargetFramework> |
||||
|
</Reference> |
||||
|
<Reference Include="WindowsBase" /> |
||||
|
<Reference Include="PresentationCore" /> |
||||
|
<Reference Include="PresentationFramework" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<ApplicationDefinition Include="App.xaml"> |
||||
|
<Generator>MSBuild:Compile</Generator> |
||||
|
<SubType>Designer</SubType> |
||||
|
</ApplicationDefinition> |
||||
|
<Page Include="MainWindow.xaml"> |
||||
|
<Generator>MSBuild:Compile</Generator> |
||||
|
<SubType>Designer</SubType> |
||||
|
</Page> |
||||
|
<Compile Include="App.xaml.cs"> |
||||
|
<DependentUpon>App.xaml</DependentUpon> |
||||
|
<SubType>Code</SubType> |
||||
|
</Compile> |
||||
|
<Compile Include="MainWindow.xaml.cs"> |
||||
|
<DependentUpon>MainWindow.xaml</DependentUpon> |
||||
|
<SubType>Code</SubType> |
||||
|
</Compile> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Compile Include="Properties\AssemblyInfo.cs"> |
||||
|
<SubType>Code</SubType> |
||||
|
</Compile> |
||||
|
<Compile Include="Properties\Resources.Designer.cs"> |
||||
|
<AutoGen>True</AutoGen> |
||||
|
<DesignTime>True</DesignTime> |
||||
|
<DependentUpon>Resources.resx</DependentUpon> |
||||
|
</Compile> |
||||
|
<Compile Include="Properties\Settings.Designer.cs"> |
||||
|
<AutoGen>True</AutoGen> |
||||
|
<DependentUpon>Settings.settings</DependentUpon> |
||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput> |
||||
|
</Compile> |
||||
|
<EmbeddedResource Include="Properties\Resources.resx"> |
||||
|
<Generator>ResXFileCodeGenerator</Generator> |
||||
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput> |
||||
|
</EmbeddedResource> |
||||
|
<None Include="Properties\Settings.settings"> |
||||
|
<Generator>SettingsSingleFileGenerator</Generator> |
||||
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput> |
||||
|
</None> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<None Include="App.config" /> |
||||
|
</ItemGroup> |
||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
||||
|
</Project> |
@ -0,0 +1,25 @@ |
|||||
|
|
||||
|
Microsoft Visual Studio Solution File, Format Version 12.00 |
||||
|
# Visual Studio 15 |
||||
|
VisualStudioVersion = 15.0.28307.757 |
||||
|
MinimumVisualStudioVersion = 10.0.40219.1 |
||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Windows-10-Setup-Script", "Windows-10-Setup-Script.csproj", "{D5A79EFF-F519-43EE-9806-A25ED11852C9}" |
||||
|
EndProject |
||||
|
Global |
||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
||||
|
Debug|Any CPU = Debug|Any CPU |
||||
|
Release|Any CPU = Release|Any CPU |
||||
|
EndGlobalSection |
||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
||||
|
{D5A79EFF-F519-43EE-9806-A25ED11852C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
|
{D5A79EFF-F519-43EE-9806-A25ED11852C9}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
|
{D5A79EFF-F519-43EE-9806-A25ED11852C9}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
|
{D5A79EFF-F519-43EE-9806-A25ED11852C9}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
|
EndGlobalSection |
||||
|
GlobalSection(SolutionProperties) = preSolution |
||||
|
HideSolutionNode = FALSE |
||||
|
EndGlobalSection |
||||
|
GlobalSection(ExtensibilityGlobals) = postSolution |
||||
|
SolutionGuid = {69F0CDEF-F15E-4CCD-B3F8-E0E1AE85BA4E} |
||||
|
EndGlobalSection |
||||
|
EndGlobal |
@ -0,0 +1,665 @@ |
|||||
|
Add-Type -AssemblyName "PresentationCore", "PresentationFramework", "WindowsBase" |
||||
|
|
||||
|
[xml]$xamlMarkup = @' |
||||
|
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
Title="Win10 Setup Script" Height="800" Width="800" FontSize="16" TextOptions.TextFormattingMode="Display" |
||||
|
ShowInTaskbar="False" WindowStartupLocation="CenterScreen" SnapsToDevicePixels="True"> |
||||
|
<Window.Resources> |
||||
|
|
||||
|
<!--#region Brushes --> |
||||
|
|
||||
|
<SolidColorBrush x:Key="RadioButton.Static.Background" Color="#FFFFFFFF"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Static.Border" Color="#FF333333"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Static.Glyph" Color="#FF333333"/> |
||||
|
|
||||
|
<SolidColorBrush x:Key="RadioButton.MouseOver.Background" Color="#FFFFFFFF"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.MouseOver.Border" Color="#FF000000"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.MouseOver.Glyph" Color="#FF000000"/> |
||||
|
|
||||
|
<SolidColorBrush x:Key="RadioButton.MouseOver.On.Background" Color="#FF4C91C8"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.MouseOver.On.Border" Color="#FF4C91C8"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.MouseOver.On.Glyph" Color="#FFFFFFFF"/> |
||||
|
|
||||
|
<SolidColorBrush x:Key="RadioButton.Disabled.Background" Color="#FFFFFFFF"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Disabled.Border" Color="#FF999999"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Disabled.Glyph" Color="#FF999999"/> |
||||
|
|
||||
|
<SolidColorBrush x:Key="RadioButton.Disabled.On.Background" Color="#FFCCCCCC"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Disabled.On.Border" Color="#FFCCCCCC"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Disabled.On.Glyph" Color="#FFA3A3A3"/> |
||||
|
|
||||
|
<SolidColorBrush x:Key="RadioButton.Pressed.Background" Color="#FF999999"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Pressed.Border" Color="#FF999999"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Pressed.Glyph" Color="#FFFFFFFF"/> |
||||
|
|
||||
|
<SolidColorBrush x:Key="RadioButton.Checked.Background" Color="#FF0063B1"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Checked.Border" Color="#FF0063B1"/> |
||||
|
<SolidColorBrush x:Key="RadioButton.Checked.Glyph" Color="#FFFFFFFF"/> |
||||
|
|
||||
|
<!--#endregion--> |
||||
|
|
||||
|
<Style x:Key="ToggleSwitchTopStyle" TargetType="{x:Type ToggleButton}"> |
||||
|
<Setter Property="Background" Value="{StaticResource RadioButton.Static.Background}"/> |
||||
|
<Setter Property="BorderBrush" Value="{StaticResource RadioButton.Static.Border}"/> |
||||
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/> |
||||
|
<Setter Property="HorizontalContentAlignment" Value="Left"/> |
||||
|
<Setter Property="BorderThickness" Value="1"/> |
||||
|
<Setter Property="SnapsToDevicePixels" Value="True"/> |
||||
|
<Setter Property="FocusVisualStyle" Value="{x:Null}"/> |
||||
|
<Setter Property="Template"> |
||||
|
<Setter.Value> |
||||
|
<ControlTemplate TargetType="{x:Type ToggleButton}"> |
||||
|
<Grid x:Name="templateRoot" |
||||
|
Background="Transparent" |
||||
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> |
||||
|
<VisualStateManager.VisualStateGroups> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal"/> |
||||
|
<VisualState x:Name="MouseOver"> |
||||
|
<Storyboard> |
||||
|
<DoubleAnimation To="0" Duration="0:0:0.2" Storyboard.TargetName="normalBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<DoubleAnimation To="1" Duration="0:0:0.2" Storyboard.TargetName="hoverBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0:0:0.2"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMarkOn" Storyboard.TargetProperty="Fill" Duration="0:0:0.2"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.On.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
<VisualState x:Name="Pressed"> |
||||
|
<Storyboard> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="pressedBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Pressed.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<Storyboard> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="checkedBorder" Storyboard.TargetProperty="BorderBrush"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Border}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="checkedBorder" Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Background}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMarkOn" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
<VisualStateGroup x:Name="CheckStates"> |
||||
|
<VisualState x:Name="Unchecked"/> |
||||
|
<VisualState x:Name="Checked"> |
||||
|
<Storyboard> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Static.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<DoubleAnimationUsingKeyFrames Duration="0:0:0.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="optionMark"> |
||||
|
<EasingDoubleKeyFrame KeyTime="0" Value="12"/> |
||||
|
</DoubleAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Checked.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="hoverBorder" Storyboard.TargetProperty="BorderBrush"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.On.Border}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="hoverBorder" Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.On.Background}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="optionMarkOn" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="checkedBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="BorderBrush"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Border}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Background}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
<VisualState x:Name="Indeterminate"/> |
||||
|
</VisualStateGroup> |
||||
|
<VisualStateGroup x:Name="FocusStates"> |
||||
|
<VisualState x:Name="Unfocused"/> |
||||
|
<VisualState x:Name="Focused"/> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateManager.VisualStateGroups> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition /> |
||||
|
<RowDefinition Height="Auto"/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<ContentPresenter x:Name="contentPresenter" |
||||
|
Focusable="False" RecognizesAccessKey="True" |
||||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
||||
|
Margin="{TemplateBinding Padding}" |
||||
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
||||
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> |
||||
|
<Grid x:Name="markGrid" Grid.Row="1" Margin="0 8 0 2" Width="44" Height="20" |
||||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"> |
||||
|
<Border x:Name="normalBorder" Opacity="1" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{TemplateBinding BorderBrush}" Background="{StaticResource RadioButton.Static.Background}"/> |
||||
|
<Border x:Name="checkedBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.Checked.Border}" Background="{StaticResource RadioButton.Checked.Background}"/> |
||||
|
<Border x:Name="hoverBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.MouseOver.Border}" Background="{StaticResource RadioButton.MouseOver.Background}"/> |
||||
|
<Border x:Name="pressedBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.Pressed.Border}" Background="{StaticResource RadioButton.Pressed.Background}"/> |
||||
|
<Border x:Name="disabledBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.Disabled.Border}" Background="{StaticResource RadioButton.Disabled.Background}"/> |
||||
|
<Ellipse x:Name="optionMark" |
||||
|
Height="10" Width="10" Fill="{StaticResource RadioButton.Static.Glyph}" StrokeThickness="0" |
||||
|
VerticalAlignment="Center" Margin="5,0" RenderTransformOrigin="0.5,0.5"> |
||||
|
<Ellipse.RenderTransform> |
||||
|
<TransformGroup> |
||||
|
<ScaleTransform/> |
||||
|
<SkewTransform/> |
||||
|
<RotateTransform/> |
||||
|
<TranslateTransform X="-12"/> |
||||
|
</TransformGroup> |
||||
|
</Ellipse.RenderTransform> |
||||
|
</Ellipse> |
||||
|
<Ellipse x:Name="optionMarkOn" Opacity="0" |
||||
|
Height="10" Width="10" Fill="{StaticResource RadioButton.Checked.Glyph}" StrokeThickness="0" |
||||
|
VerticalAlignment="Center" Margin="5,0" RenderTransformOrigin="0.5,0.5"> |
||||
|
<Ellipse.RenderTransform> |
||||
|
<TransformGroup> |
||||
|
<ScaleTransform/> |
||||
|
<SkewTransform/> |
||||
|
<RotateTransform/> |
||||
|
<TranslateTransform X="12"/> |
||||
|
</TransformGroup> |
||||
|
</Ellipse.RenderTransform> |
||||
|
</Ellipse> |
||||
|
</Grid> |
||||
|
</Grid> |
||||
|
</ControlTemplate> |
||||
|
</Setter.Value> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style x:Key="ToggleSwitchLeftStyle" TargetType="{x:Type ToggleButton}"> |
||||
|
<Setter Property="Background" Value="{StaticResource RadioButton.Static.Background}"/> |
||||
|
<Setter Property="BorderBrush" Value="{StaticResource RadioButton.Static.Border}"/> |
||||
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/> |
||||
|
<Setter Property="HorizontalContentAlignment" Value="Left"/> |
||||
|
<Setter Property="BorderThickness" Value="1"/> |
||||
|
<Setter Property="SnapsToDevicePixels" Value="True"/> |
||||
|
<Setter Property="FocusVisualStyle" Value="{x:Null}"/> |
||||
|
<Setter Property="Template"> |
||||
|
<Setter.Value> |
||||
|
<ControlTemplate TargetType="{x:Type ToggleButton}"> |
||||
|
<Grid x:Name="templateRoot" |
||||
|
Background="Transparent" |
||||
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"> |
||||
|
<VisualStateManager.VisualStateGroups> |
||||
|
<VisualStateGroup x:Name="CommonStates"> |
||||
|
<VisualState x:Name="Normal"/> |
||||
|
<VisualState x:Name="MouseOver"> |
||||
|
<Storyboard> |
||||
|
<DoubleAnimation To="0" Duration="0:0:0.2" Storyboard.TargetName="normalBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<DoubleAnimation To="1" Duration="0:0:0.2" Storyboard.TargetName="hoverBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0:0:0.2"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMarkOn" Storyboard.TargetProperty="Fill" Duration="0:0:0.2"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.On.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
<VisualState x:Name="Pressed"> |
||||
|
<Storyboard> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="pressedBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Pressed.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
<VisualState x:Name="Disabled"> |
||||
|
<Storyboard> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="checkedBorder" Storyboard.TargetProperty="BorderBrush"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Border}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="checkedBorder" Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Background}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMarkOn" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
</VisualStateGroup> |
||||
|
<VisualStateGroup x:Name="CheckStates"> |
||||
|
<VisualState x:Name="Unchecked"/> |
||||
|
<VisualState x:Name="Checked"> |
||||
|
<Storyboard> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill" Duration="0"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Static.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<DoubleAnimationUsingKeyFrames Duration="0:0:0.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="optionMark"> |
||||
|
<EasingDoubleKeyFrame KeyTime="0" Value="12"/> |
||||
|
</DoubleAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="optionMark" Storyboard.TargetProperty="Fill"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Checked.Glyph}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="hoverBorder" Storyboard.TargetProperty="BorderBrush"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.On.Border}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="hoverBorder" Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.MouseOver.On.Background}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="optionMarkOn" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<DoubleAnimation To="1" Duration="0" Storyboard.TargetName="checkedBorder" Storyboard.TargetProperty="(UIElement.Opacity)"/> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="BorderBrush"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Border}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="disabledBorder" Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RadioButton.Disabled.On.Background}"/> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
</VisualState> |
||||
|
<VisualState x:Name="Indeterminate"/> |
||||
|
</VisualStateGroup> |
||||
|
<VisualStateGroup x:Name="FocusStates"> |
||||
|
<VisualState x:Name="Unfocused"/> |
||||
|
<VisualState x:Name="Focused"/> |
||||
|
</VisualStateGroup> |
||||
|
</VisualStateManager.VisualStateGroups> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition /> |
||||
|
<ColumnDefinition Width="Auto"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<ContentPresenter x:Name="contentPresenter" |
||||
|
Focusable="False" RecognizesAccessKey="True" |
||||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
||||
|
Margin="{TemplateBinding Padding}" |
||||
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
||||
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> |
||||
|
<Grid x:Name="markGrid" Grid.Column="1" Margin="8 0 0 0" Width="44" Height="20" |
||||
|
VerticalAlignment="Center" |
||||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"> |
||||
|
<Border x:Name="normalBorder" Opacity="1" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{TemplateBinding BorderBrush}" Background="{StaticResource RadioButton.Static.Background}"/> |
||||
|
<Border x:Name="checkedBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.Checked.Border}" Background="{StaticResource RadioButton.Checked.Background}"/> |
||||
|
<Border x:Name="hoverBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.MouseOver.Border}" Background="{StaticResource RadioButton.MouseOver.Background}"/> |
||||
|
<Border x:Name="pressedBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.Pressed.Border}" Background="{StaticResource RadioButton.Pressed.Background}"/> |
||||
|
<Border x:Name="disabledBorder" Opacity="0" BorderThickness="2" CornerRadius="10" |
||||
|
BorderBrush="{StaticResource RadioButton.Disabled.Border}" Background="{StaticResource RadioButton.Disabled.Background}"/> |
||||
|
<Ellipse x:Name="optionMark" |
||||
|
Height="10" Width="10" Fill="{StaticResource RadioButton.Static.Glyph}" StrokeThickness="0" |
||||
|
VerticalAlignment="Center" Margin="5,0" RenderTransformOrigin="0.5,0.5"> |
||||
|
<Ellipse.RenderTransform> |
||||
|
<TransformGroup> |
||||
|
<ScaleTransform/> |
||||
|
<SkewTransform/> |
||||
|
<RotateTransform/> |
||||
|
<TranslateTransform X="-12"/> |
||||
|
</TransformGroup> |
||||
|
</Ellipse.RenderTransform> |
||||
|
</Ellipse> |
||||
|
<Ellipse x:Name="optionMarkOn" Opacity="0" |
||||
|
Height="10" Width="10" Fill="{StaticResource RadioButton.Checked.Glyph}" StrokeThickness="0" |
||||
|
VerticalAlignment="Center" Margin="5,0" RenderTransformOrigin="0.5,0.5"> |
||||
|
<Ellipse.RenderTransform> |
||||
|
<TransformGroup> |
||||
|
<ScaleTransform/> |
||||
|
<SkewTransform/> |
||||
|
<RotateTransform/> |
||||
|
<TranslateTransform X="12"/> |
||||
|
</TransformGroup> |
||||
|
</Ellipse.RenderTransform> |
||||
|
</Ellipse> |
||||
|
</Grid> |
||||
|
</Grid> |
||||
|
</ControlTemplate> |
||||
|
</Setter.Value> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
|
||||
|
<Style x:Key="TextBlockStyle" TargetType="{x:Type TextBlock}"> |
||||
|
<Setter Property="FontFamily" Value="Segoe UI"/> |
||||
|
<Setter Property="TextOptions.TextFormattingMode" Value="Display"/> |
||||
|
</Style> |
||||
|
|
||||
|
<Style x:Key="ItemTitleStyle" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Margin" Value="1"/> |
||||
|
<Setter Property="FontSize" Value="16"/> |
||||
|
</Style> |
||||
|
|
||||
|
<Style x:Key="ItemSubTitleStyle" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource ItemTitleStyle}"> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=ToggleButton}, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On: Banners, Sound"/> |
||||
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=ToggleButton}, Path=IsChecked}" Value="False"> |
||||
|
<Setter Property="Text" Value="Off"/> |
||||
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
|
||||
|
<SolidColorBrush x:Key="Hover.Enter.Brush" Color="#FFF2F2F2" /> |
||||
|
<SolidColorBrush x:Key="Hover.Exit.Brush" Color="#01FFFFFF" /> |
||||
|
|
||||
|
<Storyboard x:Key="Hover.Enter.Storyboard"> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource Hover.Enter.Brush}" /> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
|
||||
|
<Storyboard x:Key="Hover.Exit.Storyboard"> |
||||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background"> |
||||
|
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource Hover.Exit.Brush}" /> |
||||
|
</ObjectAnimationUsingKeyFrames> |
||||
|
</Storyboard> |
||||
|
|
||||
|
<Style x:Key="HoverBorder" TargetType="Border"> |
||||
|
<Setter Property="BorderThickness" Value="0"/> |
||||
|
<Setter Property="Margin" Value="0 4"/> |
||||
|
<Setter Property="Padding" Value="10 2"/> |
||||
|
<Style.Triggers> |
||||
|
<EventTrigger RoutedEvent="Mouse.MouseEnter"> |
||||
|
<BeginStoryboard Storyboard="{StaticResource Hover.Enter.Storyboard}" /> |
||||
|
</EventTrigger> |
||||
|
<EventTrigger RoutedEvent="Mouse.MouseLeave"> |
||||
|
<BeginStoryboard Storyboard="{StaticResource Hover.Exit.Storyboard}" /> |
||||
|
</EventTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
|
||||
|
<Style x:Key="IconBorder" TargetType="Border"> |
||||
|
<Setter Property="BorderThickness" Value="0"/> |
||||
|
<Setter Property="Margin" Value="0 0 10 0"/> |
||||
|
<Setter Property="Padding" Value="4"/> |
||||
|
<Setter Property="Width" Value="40"/> |
||||
|
<Setter Property="Height" Value="40"/> |
||||
|
<Setter Property="Background" Value="{StaticResource RadioButton.Checked.Background}"/> |
||||
|
</Style> |
||||
|
|
||||
|
</Window.Resources> |
||||
|
|
||||
|
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="20"/> |
||||
|
<ColumnDefinition Width="520"/> |
||||
|
<ColumnDefinition Width="20"/> |
||||
|
<ColumnDefinition Width="240"/> |
||||
|
<ColumnDefinition Width="20"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<!--#region Setting Panels--> |
||||
|
<StackPanel Orientation="Vertical" Grid.Column="1"> |
||||
|
<!--#region Privacy & Telemetry Setting--> |
||||
|
<StackPanel Orientation="Horizontal" Height="40"> |
||||
|
<Viewbox Width="24" Height="24" VerticalAlignment="Center"> |
||||
|
<Path Data="M12 5.69L17 10.19V18H15V12H9V18H7V10.19L12 5.69M12 3L2 12H5V20H11V14H13V20H19V12H22L12 3Z" Fill="Black" /> |
||||
|
</Viewbox> |
||||
|
<TextBlock Text="Privacy & Telemetry" FontSize="18" FontWeight="Medium" VerticalAlignment="Center" Margin="10 0 0 0"/> |
||||
|
</StackPanel> |
||||
|
|
||||
|
<Grid Margin="0 10 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry0" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Turn off "Connected User Experiences and Telemetry" service" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry0, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry0, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry1" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Turn off per-user services" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry1, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry1, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry2" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Turn off the Autologger session at the next computer restart" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry2, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry2, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry3" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Turn off the SQMLogger session at the next computer restart" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry3, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry3, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry4" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Set the operating system diagnostic data level to "Basic"" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry4, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry4, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry5" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Turn off Windows Error Reporting" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry5, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry5, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry6" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Change Windows Feedback frequency to "Never"" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry6, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry6, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry7" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Turn off diagnostics tracking scheduled tasks" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry7, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry7, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry8" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Do not offer tailored experiences based on the diagnostic data setting" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry8, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry8, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry9" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Do not let apps on other devices open and message apps on this device" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry9, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry9, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<Grid Margin="0 20 0 0" HorizontalAlignment="Left"> |
||||
|
<ToggleButton x:Name="PrivacyAndTelemetry10" FontFamily="Sergio UI" FontSize="16" |
||||
|
Style="{DynamicResource ToggleSwitchTopStyle}" |
||||
|
Content="Do not allow apps to use advertising ID" |
||||
|
IsChecked="False" |
||||
|
/> |
||||
|
<TextBlock Margin="52 0 0 0" VerticalAlignment="Bottom" FontFamily="Sergio UI" FontSize="16"> |
||||
|
<TextBlock.Style> |
||||
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
||||
|
<Setter Property="Text" Value="Off" /> |
||||
|
<Style.Triggers> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry10, Path=IsChecked}" Value="True"> |
||||
|
<Setter Property="Text" Value="On" /> |
||||
|
</DataTrigger> |
||||
|
<DataTrigger Binding="{Binding ElementName=PrivacyAndTelemetry10, Path=IsEnabled}" Value="false"> |
||||
|
<Setter Property="Opacity" Value="0.2" /> |
||||
|
</DataTrigger> |
||||
|
</Style.Triggers> |
||||
|
</Style> |
||||
|
</TextBlock.Style> |
||||
|
</TextBlock> |
||||
|
</Grid> |
||||
|
<!--#endregion--> |
||||
|
</StackPanel> |
||||
|
<!--#endregion--> |
||||
|
</Grid> |
||||
|
</ScrollViewer> |
||||
|
</Window> |
||||
|
'@ |
||||
|
|
||||
|
$xamlGui = [System.Windows.Markup.XamlReader]::Load((New-Object System.Xml.XmlNodeReader $xamlMarkup)) |
||||
|
$xamlGui.ShowDialog() |
||||
|
|
Loading…
Reference in new issue