|
|
@ -11,7 +11,9 @@ $ToggleButtons = New-Object System.Collections.ArrayList($null) |
|
|
|
Title="Windows 10 Setup Script" MinHeight="800" MinWidth="800" Height="800" Width="800" FontFamily="Sergio UI" |
|
|
|
FontSize="16" TextOptions.TextFormattingMode="Display" WindowStartupLocation="CenterScreen" |
|
|
|
SnapsToDevicePixels="True" WindowStyle="None" ResizeMode="CanResizeWithGrip" AllowsTransparency="True" |
|
|
|
ShowInTaskbar="True"> |
|
|
|
ShowInTaskbar="True" Background="#FAFAFA" |
|
|
|
Foreground="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"> |
|
|
|
|
|
|
|
<Window.Resources> |
|
|
|
|
|
|
|
<!--#region Brushes --> |
|
|
@ -46,7 +48,7 @@ $ToggleButtons = New-Object System.Collections.ArrayList($null) |
|
|
|
|
|
|
|
<!--#endregion--> |
|
|
|
|
|
|
|
<Style x:Key="ToggleSwitchTopStyle" TargetType="{x:Type ToggleButton}"> |
|
|
|
<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}}"/> |
|
|
@ -190,7 +192,29 @@ $ToggleButtons = New-Object System.Collections.ArrayList($null) |
|
|
|
</Setter> |
|
|
|
</Style> |
|
|
|
|
|
|
|
<Style x:Key="ToggleSwitchLeftStyle" TargetType="{x:Type ToggleButton}"> |
|
|
|
<!--ToggleSwitchLeftStyle |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton0" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchLeftStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Margin="65 0 0 0" VerticalAlignment="Center" IsHitTestVisible="False"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Off" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton0, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="On" /> |
|
|
|
<Setter Property="Foreground" Value="{Binding ElementName=BorderWindow, Path=BorderBrush}" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton0, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid>--> |
|
|
|
|
|
|
|
<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}}"/> |
|
|
@ -281,25 +305,24 @@ $ToggleButtons = New-Object System.Collections.ArrayList($null) |
|
|
|
<VisualState x:Name="Focused"/> |
|
|
|
</VisualStateGroup> |
|
|
|
</VisualStateManager.VisualStateGroups> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition /> |
|
|
|
<ColumnDefinition Width="Auto"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<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.Column="1" Margin="8 0 0 0" Width="44" Height="20" |
|
|
|
VerticalAlignment="Center" |
|
|
|
<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}"/> |
|
|
|
BorderBrush="{TemplateBinding BorderBrush}" Background="Transparent"/> |
|
|
|
<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}"/> |
|
|
|
BorderBrush="{StaticResource RadioButton.MouseOver.Border}" Background="Transparent"/> |
|
|
|
<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" |
|
|
@ -337,41 +360,17 @@ $ToggleButtons = New-Object System.Collections.ArrayList($null) |
|
|
|
|
|
|
|
<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> |
|
|
|
<Setter Property="TextOptions.TextFormattingMode" Value="Display"/> |
|
|
|
<Setter Property="Foreground" Value="Black"/> |
|
|
|
</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.Enter.Storyboard"/> |
|
|
|
|
|
|
|
<Storyboard x:Key="Hover.Exit.Storyboard"> |
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background"> |
|
|
|
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource Hover.Exit.Brush}" /> |
|
|
|
</ObjectAnimationUsingKeyFrames> |
|
|
|
</Storyboard> |
|
|
|
<Storyboard x:Key="Hover.Exit.Storyboard"/> |
|
|
|
|
|
|
|
<Style x:Key="HoverBorder" TargetType="Border"> |
|
|
|
<Setter Property="BorderThickness" Value="0"/> |
|
|
@ -387,538 +386,297 @@ $ToggleButtons = New-Object System.Collections.ArrayList($null) |
|
|
|
</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> |
|
|
|
|
|
|
|
<Style x:Key="CanvasTitleButton" TargetType="Canvas"> |
|
|
|
<Style x:Key="TitleButtonStyle" TargetType="Canvas"> |
|
|
|
<Setter Property="Height" Value="35"/> |
|
|
|
<Setter Property="Width" Value="35"/> |
|
|
|
<Style.Triggers> |
|
|
|
<Trigger Property="Canvas.IsMouseOver" Value="True"> |
|
|
|
<Setter Property="Canvas.Background" Value="#DA1F2E"/> |
|
|
|
<Setter Property="Canvas.Opacity" Value="5"/> |
|
|
|
<Setter Property="Canvas.Background" Value="#FF1744"/> |
|
|
|
</Trigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
|
|
|
|
<Style x:Key="ButtonTextBlock" TargetType="{x:Type TextBlock}"> |
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/> |
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/> |
|
|
|
<Setter Property="FontWeight" Value="Bold"/> |
|
|
|
<Setter Property="Margin" Value="0 5 0 0"/> |
|
|
|
</Style> |
|
|
|
|
|
|
|
</Window.Resources> |
|
|
|
|
|
|
|
<Border x:Name="BorderWindow" BorderThickness="1" BorderBrush="#0078D7"> |
|
|
|
<Border Name="BorderWindow" BorderThickness="1" BorderBrush="#673AB7"> |
|
|
|
<Grid> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="35"/> |
|
|
|
<RowDefinition Height="40"/> |
|
|
|
<RowDefinition Height="40"/> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<RowDefinition Height="35"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<!--#region Title Panel--> |
|
|
|
<Canvas Grid.Row="0" Background="{Binding ElementName=BorderWindow, Path=BorderBrush}"> |
|
|
|
<!--Title Icons--> |
|
|
|
<Viewbox Width="24" Height="24" Canvas.Left="10" Canvas.Top="5"> |
|
|
|
<Path Data="M3,12V6.75L9,5.43V11.91L3,12M20,3V11.75L10,11.9V5.21L20,3M3,13L9,13.09V19.9L3,18.75V13M20,13.25V22L10,20.09V13.1L20,13.25Z" Fill="{Binding ElementName=TitleHeader, Path=Foreground}" /> |
|
|
|
<Grid Grid.Row="0" Margin="0 0 0 5" Background="{Binding ElementName=BorderWindow, Path=BorderBrush}"> |
|
|
|
<Grid.Effect> |
|
|
|
<DropShadowEffect ShadowDepth="2" Direction="315" BlurRadius="3" Opacity="0.5"/> |
|
|
|
</Grid.Effect> |
|
|
|
<!--Icon--> |
|
|
|
<Viewbox Width="28" Height="28" HorizontalAlignment="Left" Margin="10 0 0 3"> |
|
|
|
<Canvas Width="24" Height="24"> |
|
|
|
<Path Data="M3,12V6.75L9,5.43V11.91L3,12M20,3V11.75L10,11.9V5.21L20,3M3,13L9,13.09V19.9L3,18.75V13M20,13.25V22L10,20.09V13.1L20,13.25Z" Fill="{Binding ElementName=TitleHeader,Path=Foreground}" /> |
|
|
|
</Canvas> |
|
|
|
</Viewbox> |
|
|
|
<!--Title Header--> |
|
|
|
<TextBlock x:Name="TitleHeader" Text="{Binding ElementName=Window, Path=Title}" FontFamily="Sergio UI" FontSize="14" Canvas.Left="44" Canvas.Top="10" Foreground="#FFFFFF"/> |
|
|
|
<!--Title Minimize Button--> |
|
|
|
<Canvas Name="MinimizeButton" Canvas.Right="35" Canvas.Top="0" Style="{DynamicResource CanvasTitleButton}"> |
|
|
|
<!--Header--> |
|
|
|
<TextBlock Name="TitleHeader" Text="Windows 10 Setup Script" FontFamily="Sergio UI" FontSize="14" |
|
|
|
FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="#FFFFFF"/> |
|
|
|
<!--Minimize Button--> |
|
|
|
<Canvas Name="MinimizeButton" VerticalAlignment="Center" HorizontalAlignment="Right" |
|
|
|
Margin="0 0 35 0" Style="{StaticResource TitleButtonStyle}"> |
|
|
|
<Viewbox Width="24" Height="24" Canvas.Left="4"> |
|
|
|
<Path Data="M20,14H4V10H20" Fill="{Binding ElementName=TitleHeader,Path=Foreground}" /> |
|
|
|
</Viewbox> |
|
|
|
</Canvas> |
|
|
|
<!--Title Close Button--> |
|
|
|
<Canvas Name="CloseButton" Canvas.Right="0" Canvas.Top="0" Style="{DynamicResource CanvasTitleButton}"> |
|
|
|
<!--Close Button--> |
|
|
|
<Canvas Name="CloseButton" VerticalAlignment="Center" HorizontalAlignment="Right" Style="{StaticResource TitleButtonStyle}"> |
|
|
|
<Viewbox Width="24" Height="24" Canvas.Left="4" Canvas.Top="2"> |
|
|
|
<Path Data="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" Fill="{Binding ElementName=TitleHeader,Path=Foreground}" /> |
|
|
|
</Viewbox> |
|
|
|
</Canvas> |
|
|
|
</Canvas> |
|
|
|
</Grid> |
|
|
|
<!--#endregion Title Panel--> |
|
|
|
|
|
|
|
<!--#region Control Panel--> |
|
|
|
<StackPanel Grid.Row="1" Orientation="Vertical" Width="200" Height="200" VerticalAlignment="Top" |
|
|
|
HorizontalAlignment="Right" Margin="10 30 10 0" Panel.ZIndex="10"> |
|
|
|
|
|
|
|
<!--#region Action Buttons Panel--> |
|
|
|
<StackPanel Name="ActionButtonsPanel" Orientation="Horizontal" Grid.Row="1" VerticalAlignment="Center"> |
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
<!--#endregion Control Panel--> |
|
|
|
<!--#region Apply Setting Button--> |
|
|
|
<StackPanel Name="ApplySettingPanel" Margin="10 0 0 0" Height="35" Width="35" Orientation="Horizontal"> |
|
|
|
<StackPanel.Style> |
|
|
|
<Style TargetType="{x:Type StackPanel}"> |
|
|
|
<Style.Triggers> |
|
|
|
<Trigger Property="IsMouseOver" Value="True"> |
|
|
|
<Setter Property="Background" Value="#DADADA"/> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="IsMouseOver" Value="False"> |
|
|
|
<Setter Property="Background" Value="{Binding ElementName=Window, Path=Background}"/> |
|
|
|
</Trigger> |
|
|
|
<EventTrigger RoutedEvent="MouseEnter"> |
|
|
|
<EventTrigger.Actions> |
|
|
|
<BeginStoryboard> |
|
|
|
<Storyboard> |
|
|
|
<DoubleAnimation Storyboard.TargetProperty="Width" Duration="0:0:1" To="130" SpeedRatio="3"/> |
|
|
|
</Storyboard> |
|
|
|
</BeginStoryboard> |
|
|
|
</EventTrigger.Actions> |
|
|
|
</EventTrigger> |
|
|
|
<EventTrigger RoutedEvent="MouseLeave"> |
|
|
|
<EventTrigger.Actions> |
|
|
|
<BeginStoryboard> |
|
|
|
<Storyboard> |
|
|
|
<DoubleAnimation Storyboard.TargetProperty="Width" Duration="0:0:1" To="35" SpeedRatio="3"/> |
|
|
|
</Storyboard> |
|
|
|
</BeginStoryboard> |
|
|
|
</EventTrigger.Actions> |
|
|
|
</EventTrigger> |
|
|
|
<EventTrigger RoutedEvent="MouseDown"> |
|
|
|
<EventTrigger.Actions> |
|
|
|
<BeginStoryboard> |
|
|
|
<Storyboard> |
|
|
|
<ThicknessAnimation Storyboard.TargetProperty="Margin" Duration="0:0:0.5" To="10 4 0 0" SpeedRatio="5" AutoReverse="True" /> |
|
|
|
</Storyboard> |
|
|
|
</BeginStoryboard> |
|
|
|
</EventTrigger.Actions> |
|
|
|
</EventTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</StackPanel.Style> |
|
|
|
<Viewbox Width="18" Height="18" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="8 0 9 0"> |
|
|
|
<Canvas Width="24" Height="24"> |
|
|
|
<Path Data="M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z" |
|
|
|
Fill="{Binding ElementName=BorderWindow, Path=BorderBrush}"/> |
|
|
|
</Canvas> |
|
|
|
</Viewbox> |
|
|
|
<TextBlock Name="ApplyButtonText" Text="apply settings" FontSize="14" VerticalAlignment="Center" |
|
|
|
Margin="0 0 8 0" Foreground="{Binding ElementName=BorderWindow, Path=BorderBrush}"/> |
|
|
|
</StackPanel> |
|
|
|
<!--#endregion Apply Button--> |
|
|
|
|
|
|
|
<!--#region Save Setting Button--> |
|
|
|
<StackPanel Name="SaveSettingPanel" Margin="10 0 0 0" Height="35" Width="35" Orientation="Horizontal"> |
|
|
|
<StackPanel.Style> |
|
|
|
<Style TargetType="{x:Type StackPanel}"> |
|
|
|
<Style.Triggers> |
|
|
|
<Trigger Property="IsMouseOver" Value="True"> |
|
|
|
<Setter Property="Background" Value="#DADADA"/> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="IsMouseOver" Value="False"> |
|
|
|
<Setter Property="Background" Value="{Binding ElementName=Window, Path=Background}"/> |
|
|
|
</Trigger> |
|
|
|
<EventTrigger RoutedEvent="MouseEnter"> |
|
|
|
<EventTrigger.Actions> |
|
|
|
<BeginStoryboard> |
|
|
|
<Storyboard> |
|
|
|
<DoubleAnimation Storyboard.TargetProperty="Width" Duration="0:0:1" To="125" SpeedRatio="3"/> |
|
|
|
</Storyboard> |
|
|
|
</BeginStoryboard> |
|
|
|
</EventTrigger.Actions> |
|
|
|
</EventTrigger> |
|
|
|
<EventTrigger RoutedEvent="MouseLeave"> |
|
|
|
<EventTrigger.Actions> |
|
|
|
<BeginStoryboard> |
|
|
|
<Storyboard> |
|
|
|
<DoubleAnimation Storyboard.TargetProperty="Width" Duration="0:0:1" To="35" SpeedRatio="3"/> |
|
|
|
</Storyboard> |
|
|
|
</BeginStoryboard> |
|
|
|
</EventTrigger.Actions> |
|
|
|
</EventTrigger> |
|
|
|
<EventTrigger RoutedEvent="MouseDown"> |
|
|
|
<EventTrigger.Actions> |
|
|
|
<BeginStoryboard> |
|
|
|
<Storyboard> |
|
|
|
<ThicknessAnimation Storyboard.TargetProperty="Margin" Duration="0:0:1" To="10 4 0 0" SpeedRatio="5" AutoReverse="True"/> |
|
|
|
</Storyboard> |
|
|
|
</BeginStoryboard> |
|
|
|
</EventTrigger.Actions> |
|
|
|
</EventTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</StackPanel.Style> |
|
|
|
<Viewbox Width="18" Height="18" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="8 0 9 0"> |
|
|
|
<Canvas Width="24" Height="24"> |
|
|
|
<Path Data="M12,2A3,3 0 0,0 9,5C9,6.27 9.8,7.4 11,7.83V10H8V12H11V18.92C9.16,18.63 7.53,17.57 6.53,16H8V14H3V19H5V17.3C6.58,19.61 9.2,21 12,21C14.8,21 17.42,19.61 19,17.31V19H21V14H16V16H17.46C16.46,17.56 14.83,18.63 13,18.92V12H16V10H13V7.82C14.2,7.4 15,6.27 15,5A3,3 0 0,0 12,2M12,4A1,1 0 0,1 13,5A1,1 0 0,1 12,6A1,1 0 0,1 11,5A1,1 0 0,1 12,4Z" |
|
|
|
Fill="{Binding ElementName=BorderWindow, Path=BorderBrush}"/> |
|
|
|
</Canvas> |
|
|
|
</Viewbox> |
|
|
|
<TextBlock Name="SaveButtonText" Text="save settings" FontSize="14" VerticalAlignment="Center" |
|
|
|
Margin="0 0 8 0" Foreground="{Binding ElementName=BorderWindow, Path=BorderBrush}"/> |
|
|
|
</StackPanel> |
|
|
|
<!--#endregion Save Setting Button--> |
|
|
|
|
|
|
|
<!--#region Load Setting Button--> |
|
|
|
<StackPanel Name="LoadSettingPanel" Margin="10 0 0 0" Height="35" Width="35" Orientation="Horizontal"> |
|
|
|
<StackPanel.Style> |
|
|
|
<Style TargetType="{x:Type StackPanel}"> |
|
|
|
<Style.Triggers> |
|
|
|
<Trigger Property="IsMouseOver" Value="True"> |
|
|
|
<Setter Property="Background" Value="#DADADA"/> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="IsMouseOver" Value="False"> |
|
|
|
<Setter Property="Background" Value="{Binding ElementName=Window, Path=Background}"/> |
|
|
|
</Trigger> |
|
|
|
<EventTrigger RoutedEvent="MouseEnter"> |
|
|
|
<EventTrigger.Actions> |
|
|
|
<BeginStoryboard> |
|
|
|
<Storyboard> |
|
|
|
<DoubleAnimation Storyboard.TargetProperty="Width" Duration="0:0:1" To="125" SpeedRatio="3"/> |
|
|
|
</Storyboard> |
|
|
|
</BeginStoryboard> |
|
|
|
</EventTrigger.Actions> |
|
|
|
</EventTrigger> |
|
|
|
<EventTrigger RoutedEvent="MouseLeave"> |
|
|
|
<EventTrigger.Actions> |
|
|
|
<BeginStoryboard> |
|
|
|
<Storyboard> |
|
|
|
<DoubleAnimation Storyboard.TargetProperty="Width" Duration="0:0:1" To="35" SpeedRatio="3"/> |
|
|
|
</Storyboard> |
|
|
|
</BeginStoryboard> |
|
|
|
</EventTrigger.Actions> |
|
|
|
</EventTrigger> |
|
|
|
<EventTrigger RoutedEvent="MouseDown"> |
|
|
|
<EventTrigger.Actions> |
|
|
|
<BeginStoryboard> |
|
|
|
<Storyboard> |
|
|
|
<ThicknessAnimation Storyboard.TargetProperty="Margin" Duration="0:0:1" To="10 4 0 0" SpeedRatio="5" AutoReverse="True"/> |
|
|
|
</Storyboard> |
|
|
|
</BeginStoryboard> |
|
|
|
</EventTrigger.Actions> |
|
|
|
</EventTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</StackPanel.Style> |
|
|
|
<Viewbox Width="18" Height="18" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="8 0 9 0"> |
|
|
|
<Canvas Width="24" Height="24"> |
|
|
|
<Path Data="M7.5,5.6L5,7L6.4,4.5L5,2L7.5,3.4L10,2L8.6,4.5L10,7L7.5,5.6M19.5,15.4L22,14L20.6,16.5L22,19L19.5,17.6L17,19L18.4,16.5L17,14L19.5,15.4M22,2L20.6,4.5L22,7L19.5,5.6L17,7L18.4,4.5L17,2L19.5,3.4L22,2M13.34,12.78L15.78,10.34L13.66,8.22L11.22,10.66L13.34,12.78M14.37,7.29L16.71,9.63C17.1,10 17.1,10.65 16.71,11.04L5.04,22.71C4.65,23.1 4,23.1 3.63,22.71L1.29,20.37C0.9,20 0.9,19.35 1.29,18.96L12.96,7.29C13.35,6.9 14,6.9 14.37,7.29Z" |
|
|
|
Fill="{Binding ElementName=BorderWindow, Path=BorderBrush}"/> |
|
|
|
</Canvas> |
|
|
|
</Viewbox> |
|
|
|
<TextBlock Name="LoadButtonText" Text="load settings" FontSize="14" VerticalAlignment="Center" |
|
|
|
Margin="0 0 8 0" Foreground="{Binding ElementName=BorderWindow, Path=BorderBrush}"/> |
|
|
|
</StackPanel> |
|
|
|
<!--#endregion Load Setting Button--> |
|
|
|
|
|
|
|
<!--#region Change Language Button--> |
|
|
|
<StackPanel Name="ChangeLanguagePanel" Margin="10 0 0 0" Height="35" Width="35" Orientation="Horizontal"> |
|
|
|
<StackPanel.Style> |
|
|
|
<Style TargetType="{x:Type StackPanel}"> |
|
|
|
<Style.Triggers> |
|
|
|
<Trigger Property="IsMouseOver" Value="True"> |
|
|
|
<Setter Property="Background" Value="#DADADA"/> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="IsMouseOver" Value="False"> |
|
|
|
<Setter Property="Background" Value="{Binding ElementName=Window, Path=Background}"/> |
|
|
|
</Trigger> |
|
|
|
<EventTrigger RoutedEvent="MouseEnter"> |
|
|
|
<EventTrigger.Actions> |
|
|
|
<BeginStoryboard> |
|
|
|
<Storyboard> |
|
|
|
<DoubleAnimation Storyboard.TargetProperty="Width" Duration="0:0:1" To="155" SpeedRatio="3"/> |
|
|
|
</Storyboard> |
|
|
|
</BeginStoryboard> |
|
|
|
</EventTrigger.Actions> |
|
|
|
</EventTrigger> |
|
|
|
<EventTrigger RoutedEvent="MouseLeave"> |
|
|
|
<EventTrigger.Actions> |
|
|
|
<BeginStoryboard> |
|
|
|
<Storyboard> |
|
|
|
<DoubleAnimation Storyboard.TargetProperty="Width" Duration="0:0:1" To="35" SpeedRatio="3"/> |
|
|
|
</Storyboard> |
|
|
|
</BeginStoryboard> |
|
|
|
</EventTrigger.Actions> |
|
|
|
</EventTrigger> |
|
|
|
<EventTrigger RoutedEvent="MouseDown"> |
|
|
|
<EventTrigger.Actions> |
|
|
|
<BeginStoryboard> |
|
|
|
<Storyboard> |
|
|
|
<ThicknessAnimation Storyboard.TargetProperty="Margin" Duration="0:0:1" To="10 4 0 0" SpeedRatio="5" AutoReverse="True"/> |
|
|
|
</Storyboard> |
|
|
|
</BeginStoryboard> |
|
|
|
</EventTrigger.Actions> |
|
|
|
</EventTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</StackPanel.Style> |
|
|
|
<Viewbox Width="18" Height="18" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="8 0 9 0"> |
|
|
|
<Canvas Width="24" Height="24"> |
|
|
|
<Path Data="M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z" |
|
|
|
Fill="{Binding ElementName=BorderWindow, Path=BorderBrush}"/> |
|
|
|
</Canvas> |
|
|
|
</Viewbox> |
|
|
|
<TextBlock Name="ChangeLanguageButtonText" Text="change language" FontSize="14" VerticalAlignment="Center" |
|
|
|
Margin="0 0 8 0" Foreground="{Binding ElementName=BorderWindow, Path=BorderBrush}"/> |
|
|
|
</StackPanel> |
|
|
|
<!--#endregion Change Language Button--> |
|
|
|
|
|
|
|
<!--#region Setting Panel--> |
|
|
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"> |
|
|
|
</StackPanel> |
|
|
|
<!--#endregion Action Buttons Panel--> |
|
|
|
|
|
|
|
<!--#region Toggle Setting --> |
|
|
|
<!--<ScrollViewer Grid.Row="2" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"> |
|
|
|
<StackPanel Orientation="Vertical"> |
|
|
|
<!--#region Privacy & Telemetry--> |
|
|
|
<StackPanel Orientation="Horizontal" Height="35" Margin="0 5 0 0"> |
|
|
|
<Viewbox Width="24" Height="24" Margin="20 0 5 6" > |
|
|
|
<Path Data="M12 5.69L17 10.19V18H15V12H9V18H7V10.19L12 5.69M12 3L2 12H5V20H11V14H13V20H19V12H22L12 3Z" Fill="Black" /> |
|
|
|
</Viewbox> |
|
|
|
<TextBlock Text="Privacy & Telemetry" VerticalAlignment="Center" FontWeight="Bold"/> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton0" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock0" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Turn off "Connected User Experiences and Telemetry" service" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton0, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Turn off "Connected User Experiences and Telemetry" service" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton0, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton1" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock1" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Turn off per-user services" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton1, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Turn off per-user services" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton1, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton2" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock2" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Turn off the Autologger session at the next computer restart" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton2, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Turn off the Autologger session at the next computer restart" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton2, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton3" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock3" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Turn off the SQMLogger session at the next computer restart" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton3, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Turn off the SQMLogger session at the next computer restart" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton3, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton4" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock4" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Set the operating system diagnostic data level to "Basic"" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton4, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Set the operating system diagnostic data level to "Basic"" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton4, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton5" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock5" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Turn off Windows Error Reporting" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton5, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Turn off Windows Error Reporting" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton5, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton6" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock6" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Change Windows Feedback frequency to "Never"" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton6, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Change Windows Feedback frequency to "Never"" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton6, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton7" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock7" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Turn off diagnostics tracking scheduled tasks" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton7, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Turn off diagnostics tracking scheduled tasks" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton7, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton8" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock8" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
--><!--#region Privacy & Telemetry--><!-- |
|
|
|
<StackPanel Orientation="Vertical"> |
|
|
|
<TextBlock Text="Privacy & Telemetry" FontWeight="Bold" FontSize="18" Margin="10 10 0 10" /> |
|
|
|
<Grid Margin="10 0 0 10" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton x:Name="ToggleSwitch1" 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="Do not offer tailored experiences based on the diagnostic data setting" /> |
|
|
|
<Setter Property="Text" Value="Off" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton8, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Do not offer tailored experiences based on the diagnostic data setting" /> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleSwitch1, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="On" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton8, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton9" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock9" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Do not let apps on other devices open and message apps on this device" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton9, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Do not let apps on other devices open and message apps on this device" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton9, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton10" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock10" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Do not allow apps to use advertising ID" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton10, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Do not allow apps to use advertising ID" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton10, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton11" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock11" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Do not use sign-in info to automatically finish setting up device after an update or restart" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton11, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Do not use sign-in info to automatically finish setting up device after an update or restart" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton11, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton12" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock12" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Do not let websites provide locally relevant content by accessing language list" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton12, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Do not let websites provide locally relevant content by accessing language list" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton12, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton13" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock13" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Turn off reserved storage" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton13, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Turn off reserved storage" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton13, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton14" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock14" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Turn off tip, trick, and suggestions as you use Windows" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton14, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Turn off tip, trick, and suggestions as you use Windows" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton14, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton15" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock15" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Turn off suggested content in the Settings" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton15, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Turn off suggested content in the Settings" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton15, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton16" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock16" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Turn off automatic installing suggested apps" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton16, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Turn off automatic installing suggested apps" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton16, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
<!--#endregion--> |
|
|
|
|
|
|
|
<!--#region UI & Personalization--> |
|
|
|
<StackPanel Orientation="Horizontal" Height="35" Margin="0 5 0 0"> |
|
|
|
<Viewbox Width="24" Height="24" Margin="20 0 5 6" > |
|
|
|
<Path Data="M12 5.69L17 10.19V18H15V12H9V18H7V10.19L12 5.69M12 3L2 12H5V20H11V14H13V20H19V12H22L12 3Z" Fill="Black" /> |
|
|
|
</Viewbox> |
|
|
|
<TextBlock Text="UI & Personalization" VerticalAlignment="Center" FontWeight="Bold"/> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton17" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock17" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Set File Explorer to open to This PC by default" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton17, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Set File Explorer to open to This PC by default" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton17, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton18" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock18" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Show Hidden Files, Folders, and Drives" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton18, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Show Hidden Files, Folders, and Drives" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton18, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton19" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock19" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Show File Name Extensions" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton19, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Show File Name Extensions" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton19, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</TextBlock.Style> |
|
|
|
</TextBlock> |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0 2 0 2"> |
|
|
|
<Grid Margin="0" HorizontalAlignment="Left"> |
|
|
|
<ToggleButton Name="ToggleButton20" FontFamily="Sergio UI" FontSize="1" |
|
|
|
Style="{DynamicResource ToggleSwitchTopStyle}" Content="" IsChecked="False"/> |
|
|
|
<TextBlock Name="TextBlock20" Margin="65 3 0 0" VerticalAlignment="Center" FontFamily="Sergio UI" FontSize="16"> |
|
|
|
<TextBlock.Style> |
|
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}"> |
|
|
|
<Setter Property="Text" Value="Hide Task View button on taskbar" /> |
|
|
|
<Style.Triggers> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton20, Path=IsChecked}" Value="True"> |
|
|
|
<Setter Property="Text" Value="Hide Task View button on taskbar" /> |
|
|
|
</DataTrigger> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleButton20, Path=IsEnabled}" Value="false"> |
|
|
|
<DataTrigger Binding="{Binding ElementName=ToggleSwitch1, Path=IsEnabled}" Value="false"> |
|
|
|
<Setter Property="Opacity" Value="0.2" /> |
|
|
|
</DataTrigger> |
|
|
|
</Style.Triggers> |
|
|
@ -928,15 +686,8 @@ $ToggleButtons = New-Object System.Collections.ArrayList($null) |
|
|
|
</Grid> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
</ScrollViewer> |
|
|
|
<!--#endregion Setting Panel--> |
|
|
|
|
|
|
|
<!--#region Info Panel--> |
|
|
|
<StackPanel Grid.Row="2" Background="{Binding ElementName=BorderWindow, Path=BorderBrush}" Orientation="Horizontal"> |
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
<!--#endregion Info Panel--> |
|
|
|
|
|
|
|
</ScrollViewer>--> |
|
|
|
<!--#endregion Toggle Setting--> |
|
|
|
</Grid> |
|
|
|
</Border> |
|
|
|
</Window> |
|
|
|