[PowerRename] Adding mica (#27509)

* Adding mica + other improvements

* Address feedback
This commit is contained in:
Niels Laute
2023-07-19 15:28:32 +02:00
committed by GitHub
parent 4647491c68
commit cc3b30c7e2
3 changed files with 452 additions and 757 deletions

View File

@@ -2,10 +2,6 @@
x:Class="PowerRenameUI.App" x:Class="PowerRenameUI.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:PowerRenameUI"
xmlns:contract7Present="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract,7)"
xmlns:contract7NotPresent="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractNotPresent(Windows.Foundation.UniversalApiContract,7)"
xmlns:contract6Present="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract,6)"
xmlns:animatedVisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals" xmlns:animatedVisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals"
xmlns:primitives="using:Microsoft.UI.Xaml.Controls.Primitives"> xmlns:primitives="using:Microsoft.UI.Xaml.Controls.Primitives">
<Application.Resources> <Application.Resources>
@@ -16,295 +12,8 @@
</ResourceDictionary.MergedDictionaries> </ResourceDictionary.MergedDictionaries>
<!-- Other app resources here --> <!-- Other app resources here -->
<Style x:Key="CustomToggleButtonStyle" TargetType="ToggleButton">
<Setter Property="Background"
Value="{ThemeResource ToggleButtonBackground}" />
<Setter Property="BackgroundSizing"
Value="InnerBorderEdge" />
<Setter Property="Foreground"
Value="{ThemeResource ToggleButtonForeground}" />
<Setter Property="BorderBrush"
Value="{ThemeResource ToggleButtonBorderBrush}" />
<Setter Property="BorderThickness"
Value="{ThemeResource ToggleButtonBorderThemeThickness}" />
<Setter Property="Padding"
Value="{StaticResource ButtonPadding}" />
<Setter Property="HorizontalAlignment"
Value="Left" />
<Setter Property="VerticalAlignment"
Value="Center" />
<Setter Property="FontFamily"
Value="{ThemeResource ContentControlThemeFontFamily}" />
<Setter Property="FontWeight"
Value="Normal" />
<Setter Property="FontSize"
Value="{ThemeResource ControlContentThemeFontSize}" />
<Setter Property="UseSystemFocusVisuals"
Value="{StaticResource UseSystemFocusVisuals}" />
<Setter Property="FocusVisualMargin"
Value="-3" />
<Setter Property="CornerRadius"
Value="{ThemeResource ControlCornerRadius}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToggleButton">
<ContentPresenter x:Name="ContentPresenter"
Background="{TemplateBinding Background}"
BackgroundSizing="{TemplateBinding BackgroundSizing}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="1"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
ContentTransitions="{TemplateBinding ContentTransitions}"
CornerRadius="{TemplateBinding CornerRadius}"
Padding="{TemplateBinding Padding}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
AutomationProperties.AccessibilityView="Raw">
<ContentPresenter.BackgroundTransition>
<BrushTransition Duration="0:0:0.083" />
</ContentPresenter.BackgroundTransition>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="PointerOver">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBackgroundPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBorderBrushPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonForegroundPointerOver}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Pressed">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBackgroundPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBorderBrushPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonForegroundPressed}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Disabled">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBackgroundDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonForegroundDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBorderBrushDisabled}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Checked">
<Storyboard>
<!--<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBackgroundChecked}" />
</ObjectAnimationUsingKeyFrames>-->
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBackgroundChecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBackgroundChecked}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BackgroundSizing">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonCheckedStateBackgroundSizing}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="CheckedPointerOver">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBackgroundCheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBorderBrushCheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonForegroundCheckedPointerOver}" />
</ObjectAnimationUsingKeyFrames>
<contract7Present:ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BackgroundSizing">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonCheckedStateBackgroundSizing}" />
</contract7Present:ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="CheckedPressed">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBackgroundCheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonForegroundCheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBorderBrushCheckedPressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BackgroundSizing">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonCheckedStateBackgroundSizing}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="CheckedDisabled">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBackgroundCheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonForegroundCheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBorderBrushCheckedDisabled}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Indeterminate">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBackgroundIndeterminate}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonForegroundIndeterminate}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBorderBrushIndeterminate}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="IndeterminatePointerOver">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBackgroundIndeterminatePointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBorderBrushIndeterminatePointerOver}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonForegroundIndeterminatePointerOver}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="IndeterminatePressed">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBackgroundIndeterminatePressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBorderBrushIndeterminatePressed}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonForegroundIndeterminatePressed}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="IndeterminateDisabled">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBackgroundIndeterminateDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonForegroundIndeterminateDisabled}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{ThemeResource ToggleButtonBorderBrushIndeterminateDisabled}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</ContentPresenter>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="SplitAccentButtonStyle" TargetType="SplitButton"> <Style x:Key="SplitAccentButtonStyle" TargetType="SplitButton">
<Setter Property="Background" Value="{ThemeResource AccentButtonBackground}" /> <!--<Setter Property="Background" Value="{ThemeResource AccentButtonBackground}" />-->
<Setter Property="Foreground" Value="{ThemeResource AccentButtonForeground}" /> <Setter Property="Foreground" Value="{ThemeResource AccentButtonForeground}" />
<Setter Property="BorderBrush" Value="{ThemeResource AccentButtonBorderBrush}" /> <Setter Property="BorderBrush" Value="{ThemeResource AccentButtonBorderBrush}" />
<Setter Property="BorderThickness" Value="{ThemeResource SplitButtonBorderThemeThickness}" /> <Setter Property="BorderThickness" Value="{ThemeResource SplitButtonBorderThemeThickness}" />
@@ -315,17 +24,16 @@
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" /> <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
<Setter Property="UseSystemFocusVisuals" Value="True" /> <Setter Property="UseSystemFocusVisuals" Value="True" />
<Setter Property="FocusVisualMargin" Value="-1" /> <Setter Property="FocusVisualMargin" Value="-1" />
<Setter Property="CornerRadius" Value="{StaticResource ControlCornerRadius}" />
<Setter Property="IsTabStop" Value="True" /> <Setter Property="IsTabStop" Value="True" />
<Setter Property="Padding" Value="{ThemeResource ButtonPadding}" /> <Setter Property="Padding" Value="{ThemeResource ButtonPadding}" />
<!--<contract7Present:Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}" />-->
<Setter Property="Template"> <Setter Property="Template">
<Setter.Value> <Setter.Value>
<ControlTemplate TargetType="SplitButton"> <ControlTemplate TargetType="SplitButton">
<Grid <Grid
x:Name="RootGrid" x:Name="RootGrid"
Background="Transparent" Background="{ThemeResource AccentButtonBackground}"
contract7Present:CornerRadius="{TemplateBinding CornerRadius}" CornerRadius="{TemplateBinding CornerRadius}">
contract7NotPresent:CornerRadius="{ThemeResource ControlCornerRadius}">
<Grid.Resources> <Grid.Resources>
<!-- Override the style of the inner buttons so that they don't affect background/foreground/border colors --> <!-- Override the style of the inner buttons so that they don't affect background/foreground/border colors -->
@@ -344,7 +52,6 @@
<Setter.Value> <Setter.Value>
<ControlTemplate TargetType="Button"> <ControlTemplate TargetType="Button">
<Grid x:Name="RootGrid" Background="Transparent"> <Grid x:Name="RootGrid" Background="Transparent">
<VisualStateManager.VisualStateGroups> <VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates"> <VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" /> <VisualState x:Name="Normal" />
@@ -360,26 +67,27 @@
</VisualState> </VisualState>
<VisualState x:Name="Disabled"> <VisualState x:Name="Disabled">
<VisualState.Setters> <VisualState.Setters>
<Setter Target="ContentPresenter.Background" Value="{ThemeResource AccentButtonBackgroundDisabled}"/> <Setter Target="RootGrid.Background" Value="{ThemeResource AccentButtonBackgroundDisabled}" />
<Setter Target="ContentPresenter.BorderBrush" Value="{ThemeResource AccentButtonBorderBrushDisabled}"/> <Setter Target="RootGrid.BorderBrush" Value="{ThemeResource AccentButtonBorderBrushDisabled}" />
<Setter Target="ContentPresenter.Foreground" Value="{ThemeResource AccentButtonForegroundDisabled}"/> <Setter Target="ContentPresenter.Foreground" Value="{ThemeResource AccentButtonForeground}" />
<Setter Target="ContentPresenter.Opacity" Value="0.6"/> <Setter Target="ContentPresenter.Opacity" Value="0.4" />
</VisualState.Setters> </VisualState.Setters>
</VisualState> </VisualState>
</VisualStateGroup> </VisualStateGroup>
</VisualStateManager.VisualStateGroups> </VisualStateManager.VisualStateGroups>
<ContentPresenter x:Name="ContentPresenter" <ContentPresenter
BorderBrush="{TemplateBinding BorderBrush}" x:Name="ContentPresenter"
BorderThickness="{TemplateBinding BorderThickness}"
Content="{TemplateBinding Content}"
ContentTransitions="{TemplateBinding ContentTransitions}"
ContentTemplate="{TemplateBinding ContentTemplate}"
Padding="{TemplateBinding Padding}" Padding="{TemplateBinding Padding}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
AnimatedIcon.State="Normal"
AutomationProperties.AccessibilityView="Raw" AutomationProperties.AccessibilityView="Raw"
AnimatedIcon.State="Normal"/> BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
ContentTransitions="{TemplateBinding ContentTransitions}" />
</Grid> </Grid>
</ControlTemplate> </ControlTemplate>
</Setter.Value> </Setter.Value>
@@ -387,6 +95,15 @@
</Style> </Style>
</Grid.Resources> </Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition
x:Name="PrimaryButtonColumn"
Width="*"
MinWidth="{ThemeResource SplitButtonPrimaryButtonSize}" />
<ColumnDefinition x:Name="Separator" Width="1" />
<ColumnDefinition x:Name="SecondaryButtonColumn" Width="{ThemeResource SplitButtonSecondaryButtonSize}" />
</Grid.ColumnDefinitions>
<VisualStateManager.VisualStateGroups> <VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates"> <VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" /> <VisualState x:Name="Normal" />
@@ -535,71 +252,77 @@
</VisualStateGroup> </VisualStateGroup>
</VisualStateManager.VisualStateGroups> </VisualStateManager.VisualStateGroups>
<Grid.ColumnDefinitions> <Grid
<ColumnDefinition x:Name="PrimaryButtonColumn" Width="*" MinWidth="{ThemeResource SplitButtonPrimaryButtonSize}"/> x:Name="PrimaryBackgroundGrid"
<ColumnDefinition x:Name="Separator" Width="1" /> Grid.ColumnSpan="2"
<ColumnDefinition x:Name="SecondaryButtonColumn" Width="{ThemeResource SplitButtonSecondaryButtonSize}"/> Background="{TemplateBinding Background}" />
</Grid.ColumnDefinitions>
<Grid x:Name="PrimaryBackgroundGrid" <Grid
Background="{TemplateBinding Background}" x:Name="DividerBackgroundGrid"
Grid.ColumnSpan="2" /> Grid.Column="1"
<Grid x:Name="DividerBackgroundGrid"
Width="1" Width="1"
Background="{ThemeResource AccentButtonBorderBrush}" Background="{ThemeResource AccentButtonBorderBrush}" />
Grid.Column="1"/>
<Grid x:Name="SecondaryBackgroundGrid" <Grid
Background="{TemplateBinding Background}" x:Name="SecondaryBackgroundGrid"
Grid.Column="2"/> Grid.Column="2"
Background="{TemplateBinding Background}" />
<Grid x:Name="Border" <Grid
x:Name="Border"
Grid.ColumnSpan="3" Grid.ColumnSpan="3"
BorderBrush="{TemplateBinding BorderBrush}" BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}" BorderThickness="{TemplateBinding BorderThickness}"
contract7Present:CornerRadius="{TemplateBinding CornerRadius}"/> CornerRadius="{TemplateBinding CornerRadius}" />
<Button x:Name="PrimaryButton" <Button
x:Name="PrimaryButton"
Grid.Column="0" Grid.Column="0"
Foreground="{TemplateBinding Foreground}" Padding="{TemplateBinding Padding}"
Background="{TemplateBinding Background}"
BorderThickness="0"
BorderBrush="Transparent"
Content="{TemplateBinding Content}"
ContentTransitions="{TemplateBinding ContentTransitions}"
ContentTemplate="{TemplateBinding ContentTemplate}"
Command="{TemplateBinding Command}"
CommandParameter="{TemplateBinding CommandParameter}"
FontFamily="{TemplateBinding FontFamily}"
FontSize="{TemplateBinding FontSize}"
FontWeight="{TemplateBinding FontWeight}"
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" VerticalAlignment="Stretch"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
Padding="{TemplateBinding Padding}" AutomationProperties.AccessibilityView="Raw"
IsTabStop="False"
AutomationProperties.AccessibilityView="Raw"/>
<Button x:Name="SecondaryButton"
Grid.Column="2"
Foreground="{ThemeResource AccentButtonForeground}"
Background="{TemplateBinding Background}" Background="{TemplateBinding Background}"
BorderThickness="0"
BorderBrush="Transparent" BorderBrush="Transparent"
HorizontalContentAlignment="Stretch" BorderThickness="0"
VerticalContentAlignment="Stretch" Command="{TemplateBinding Command}"
CommandParameter="{TemplateBinding CommandParameter}"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
ContentTransitions="{TemplateBinding ContentTransitions}"
FontFamily="{TemplateBinding FontFamily}"
FontSize="{TemplateBinding FontSize}"
FontWeight="{TemplateBinding FontWeight}"
Foreground="{TemplateBinding Foreground}"
IsTabStop="False" />
<Button
x:Name="SecondaryButton"
Grid.Column="2"
Padding="0,0,12,0"
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" VerticalAlignment="Stretch"
Padding="0,0,12,0" HorizontalContentAlignment="Stretch"
IsTabStop="False" VerticalContentAlignment="Stretch"
AutomationProperties.AccessibilityView="Raw"> AutomationProperties.AccessibilityView="Raw"
Background="{TemplateBinding Background}"
BorderBrush="Transparent"
BorderThickness="0"
Foreground="{ThemeResource AccentButtonForeground}"
IsTabStop="False">
<Button.Content> <Button.Content>
<AnimatedIcon Height="12" Width="12" VerticalAlignment="Center" HorizontalAlignment="Right" AutomationProperties.AccessibilityView="Raw"> <AnimatedIcon
Width="12"
Height="12"
HorizontalAlignment="Right"
VerticalAlignment="Center"
AutomationProperties.AccessibilityView="Raw">
<animatedVisuals:AnimatedChevronDownSmallVisualSource /> <animatedVisuals:AnimatedChevronDownSmallVisualSource />
<AnimatedIcon.FallbackIconSource> <AnimatedIcon.FallbackIconSource>
<FontIconSource FontFamily="{ThemeResource SymbolThemeFontFamily}" <FontIconSource
FontFamily="{ThemeResource SymbolThemeFontFamily}"
FontSize="8" FontSize="8"
Glyph="&#xE96E;" Glyph="&#xE96E;"
IsTextScaleFactorEnabled="False" /> IsTextScaleFactorEnabled="False" />
@@ -613,9 +336,10 @@
</Setter> </Setter>
</Style> </Style>
<x:Double x:Key="AutoSuggestListMaxHeight">286</x:Double> <!-- This will make sure the AutoSuggestBox flyout does not overlap with the Apply button --> <x:Double x:Key="AutoSuggestListMaxHeight">286</x:Double>
<!-- This will make sure the AutoSuggestBox flyout does not overlap with the Apply button -->
<Style TargetType="TextBox" x:Key="AutoSuggestBoxTextBoxStyle"> <Style x:Key="AutoSuggestBoxTextBoxStyle" TargetType="TextBox">
<Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}" /> <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}" />
<Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}" /> <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}" />
<Setter Property="Foreground" Value="{ThemeResource TextControlForeground}" /> <Setter Property="Foreground" Value="{ThemeResource TextControlForeground}" />
@@ -640,13 +364,13 @@
<Setter Property="Template"> <Setter Property="Template">
<Setter.Value> <Setter.Value>
<ControlTemplate TargetType="Button"> <ControlTemplate TargetType="Button">
<Grid x:Name="ButtonLayoutGrid" <Grid
x:Name="ButtonLayoutGrid"
Margin="{StaticResource AutoSuggestBoxDeleteButtonMargin}"
Background="{ThemeResource TextControlButtonBackground}"
BorderBrush="{ThemeResource TextControlButtonBorderBrush}" BorderBrush="{ThemeResource TextControlButtonBorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}" BorderThickness="{TemplateBinding BorderThickness}"
Background="{ThemeResource TextControlButtonBackground}" CornerRadius="{ThemeResource ControlCornerRadius}">
Margin="{StaticResource AutoSuggestBoxDeleteButtonMargin}"
contract7Present:CornerRadius="{ThemeResource ControlCornerRadius}"
contract7NotPresent:CornerRadius="{ThemeResource ControlCornerRadius}">
<VisualStateManager.VisualStateGroups> <VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates"> <VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" /> <VisualState x:Name="Normal" />
@@ -681,7 +405,8 @@
<VisualState x:Name="Disabled"> <VisualState x:Name="Disabled">
<Storyboard> <Storyboard>
<DoubleAnimation Storyboard.TargetName="ButtonLayoutGrid" <DoubleAnimation
Storyboard.TargetName="ButtonLayoutGrid"
Storyboard.TargetProperty="Opacity" Storyboard.TargetProperty="Opacity"
To="0" To="0"
Duration="0" /> Duration="0" />
@@ -689,15 +414,16 @@
</VisualState> </VisualState>
</VisualStateGroup> </VisualStateGroup>
</VisualStateManager.VisualStateGroups> </VisualStateManager.VisualStateGroups>
<TextBlock x:Name="GlyphElement" <TextBlock
Foreground="{ThemeResource TextControlButtonForeground}" x:Name="GlyphElement"
VerticalAlignment="Center"
HorizontalAlignment="Center" HorizontalAlignment="Center"
FontStyle="Normal" VerticalAlignment="Center"
FontSize="{ThemeResource AutoSuggestBoxIconFontSize}" AutomationProperties.AccessibilityView="Raw"
Text="&#xe894;"
FontFamily="{ThemeResource SymbolThemeFontFamily}" FontFamily="{ThemeResource SymbolThemeFontFamily}"
AutomationProperties.AccessibilityView="Raw" /> FontSize="{ThemeResource AutoSuggestBoxIconFontSize}"
FontStyle="Normal"
Foreground="{ThemeResource TextControlButtonForeground}"
Text="&#xe894;" />
</Grid> </Grid>
</ControlTemplate> </ControlTemplate>
</Setter.Value> </Setter.Value>
@@ -707,23 +433,23 @@
<Setter Property="Template"> <Setter Property="Template">
<Setter.Value> <Setter.Value>
<ControlTemplate TargetType="Button"> <ControlTemplate TargetType="Button">
<ContentPresenter x:Name="ContentPresenter" <ContentPresenter
Background="{ThemeResource TextControlButtonBackground}" x:Name="ContentPresenter"
contract7Present:BackgroundSizing="{TemplateBinding BackgroundSizing}"
BorderBrush="{ThemeResource TextControlButtonBorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Content="{TemplateBinding Content}"
contract7Present:CornerRadius="{TemplateBinding CornerRadius}"
contract7NotPresent:CornerRadius="{Binding Source={ThemeResource ControlCornerRadius}, Converter={StaticResource RightCornerRadiusFilterConverter}}"
ContentTemplate="{TemplateBinding ContentTemplate}"
ContentTransitions="{TemplateBinding ContentTransitions}"
FontSize="{ThemeResource AutoSuggestBoxIconFontSize}"
Margin="{ThemeResource AutoSuggestBoxInnerButtonMargin}" Margin="{ThemeResource AutoSuggestBoxInnerButtonMargin}"
Padding="{TemplateBinding Padding}" Padding="{TemplateBinding Padding}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
AnimatedIcon.State="Normal"
AutomationProperties.AccessibilityView="Raw" AutomationProperties.AccessibilityView="Raw"
AnimatedIcon.State="Normal"> Background="{ThemeResource TextControlButtonBackground}"
BackgroundSizing="{TemplateBinding BackgroundSizing}"
BorderBrush="{ThemeResource TextControlButtonBorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
ContentTransitions="{TemplateBinding ContentTransitions}"
CornerRadius="{TemplateBinding CornerRadius}"
FontSize="{ThemeResource AutoSuggestBoxIconFontSize}">
<VisualStateManager.VisualStateGroups> <VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates"> <VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" /> <VisualState x:Name="Normal" />
@@ -764,7 +490,8 @@
<VisualState x:Name="Disabled"> <VisualState x:Name="Disabled">
<Storyboard> <Storyboard>
<DoubleAnimation Storyboard.TargetName="ContentPresenter" <DoubleAnimation
Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Opacity" Storyboard.TargetProperty="Opacity"
To="0" To="0"
Duration="0" /> Duration="0" />
@@ -779,6 +506,19 @@
</Style> </Style>
</Grid.Resources> </Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="{ThemeResource AutoSuggestBoxRightButtonMargin}" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<VisualStateManager.VisualStateGroups> <VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates"> <VisualStateGroup x:Name="CommonStates">
@@ -864,100 +604,93 @@
</VisualStateGroup> </VisualStateGroup>
</VisualStateManager.VisualStateGroups> </VisualStateManager.VisualStateGroups>
<Border
<Grid.ColumnDefinitions> x:Name="BorderElement"
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="{ThemeResource AutoSuggestBoxRightButtonMargin}" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Border x:Name="BorderElement"
Grid.Row="1" Grid.Row="1"
Grid.RowSpan="1"
Grid.ColumnSpan="4"
Background="{TemplateBinding Background}" Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}" BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}" BorderThickness="{TemplateBinding BorderThickness}"
Grid.ColumnSpan="4" CornerRadius="{TemplateBinding CornerRadius}" />
Grid.RowSpan="1" <ContentPresenter
contract7Present:CornerRadius="{TemplateBinding CornerRadius}" x:Name="HeaderContentPresenter"
contract7NotPresent:CornerRadius="{ThemeResource ControlCornerRadius}" />
<ContentPresenter x:Name="HeaderContentPresenter"
x:DeferLoadStrategy="Lazy"
Visibility="Collapsed"
Grid.Row="0" Grid.Row="0"
Foreground="{ThemeResource TextControlHeaderForeground}"
Margin="{ThemeResource AutoSuggestBoxTopHeaderMargin}"
Grid.ColumnSpan="4" Grid.ColumnSpan="4"
Margin="{ThemeResource AutoSuggestBoxTopHeaderMargin}"
x:DeferLoadStrategy="Lazy"
Content="{TemplateBinding Header}" Content="{TemplateBinding Header}"
ContentTemplate="{TemplateBinding HeaderTemplate}" ContentTemplate="{TemplateBinding HeaderTemplate}"
FontWeight="Normal" FontWeight="Normal"
TextWrapping="Wrap" /> Foreground="{ThemeResource TextControlHeaderForeground}"
<ScrollViewer x:Name="ContentElement" TextWrapping="Wrap"
Visibility="Collapsed" />
<ScrollViewer
x:Name="ContentElement"
Grid.Row="1" Grid.Row="1"
HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" Margin="{TemplateBinding BorderThickness}"
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" Padding="{TemplateBinding Padding}"
VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}"
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}"
IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}"
IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
Margin="{TemplateBinding BorderThickness}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Padding="{TemplateBinding Padding}"
IsTabStop="False"
AutomationProperties.AccessibilityView="Raw" AutomationProperties.AccessibilityView="Raw"
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}"
IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}"
IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}"
IsTabStop="False"
IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}"
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}"
ZoomMode="Disabled" /> ZoomMode="Disabled" />
<ContentControl x:Name="PlaceholderTextContentPresenter" <ContentControl
x:Name="PlaceholderTextContentPresenter"
Grid.Row="1" Grid.Row="1"
Foreground="{ThemeResource TextControlPlaceholderForeground}" Grid.ColumnSpan="2"
Margin="{TemplateBinding BorderThickness}" Margin="{TemplateBinding BorderThickness}"
Padding="{TemplateBinding Padding}" Padding="{TemplateBinding Padding}"
IsTabStop="False"
Grid.ColumnSpan="2"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
Content="{TemplateBinding PlaceholderText}" Content="{TemplateBinding PlaceholderText}"
IsHitTestVisible="False" /> Foreground="{ThemeResource TextControlPlaceholderForeground}"
<Button x:Name="DeleteButton" IsHitTestVisible="False"
IsTabStop="False" />
<Button
x:Name="DeleteButton"
Grid.Row="1" Grid.Row="1"
contract7Present:CornerRadius="{TemplateBinding CornerRadius}"
Style="{StaticResource DeleteButtonStyle}"
BorderThickness="{TemplateBinding BorderThickness}"
Padding="{ThemeResource HelperButtonThemePadding}"
IsTabStop="False"
Grid.Column="1" Grid.Column="1"
Visibility="Collapsed"
FontSize="{TemplateBinding FontSize}"
Width="32" Width="32"
Padding="{ThemeResource HelperButtonThemePadding}"
VerticalAlignment="Stretch"
AutomationProperties.AccessibilityView="Raw" AutomationProperties.AccessibilityView="Raw"
VerticalAlignment="Stretch" /> BorderThickness="{TemplateBinding BorderThickness}"
<Button x:Name="QueryButton" CornerRadius="{TemplateBinding CornerRadius}"
FontSize="{TemplateBinding FontSize}"
IsTabStop="False"
Style="{StaticResource DeleteButtonStyle}"
Visibility="Collapsed" />
<Button
x:Name="QueryButton"
Grid.Row="1" Grid.Row="1"
Grid.Column="2" Grid.Column="2"
contract7Present:CornerRadius="{TemplateBinding CornerRadius}"
Style="{StaticResource QueryButtonStyle}"
BorderThickness="{TemplateBinding BorderThickness}"
Margin="2,0,0,0"
Padding="{ThemeResource HelperButtonThemePadding}"
IsTabStop="False"
FontSize="{TemplateBinding FontSize}"
Width="32" Width="32"
Height="28" Height="28"
Margin="2,0,0,0"
Padding="{ThemeResource HelperButtonThemePadding}"
VerticalAlignment="Stretch" VerticalAlignment="Stretch"
AutomationProperties.AccessibilityView="Raw"/> AutomationProperties.AccessibilityView="Raw"
<contract7Present:ContentPresenter x:Name="DescriptionPresenter" BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}"
FontSize="{TemplateBinding FontSize}"
IsTabStop="False"
Style="{StaticResource QueryButtonStyle}" />
<ContentPresenter
x:Name="DescriptionPresenter"
Grid.Row="2" Grid.Row="2"
Grid.ColumnSpan="4" Grid.ColumnSpan="4"
Content="{TemplateBinding Description}"
x:Load="False" x:Load="False"
Foreground="{ThemeResource SystemControlDescriptionTextForegroundBrush}" AutomationProperties.AccessibilityView="Raw"
AutomationProperties.AccessibilityView="Raw" /> Content="{TemplateBinding Description}"
Foreground="{ThemeResource SystemControlDescriptionTextForegroundBrush}" />
</Grid> </Grid>
@@ -966,7 +699,7 @@
</Setter> </Setter>
</Style> </Style>
<Style TargetType="AutoSuggestBox" BasedOn="{StaticResource DefaultAutoSuggestBoxStyle}" /> <Style BasedOn="{StaticResource DefaultAutoSuggestBoxStyle}" TargetType="AutoSuggestBox" />
<Style x:Key="DefaultAutoSuggestBoxStyle" TargetType="AutoSuggestBox"> <Style x:Key="DefaultAutoSuggestBoxStyle" TargetType="AutoSuggestBox">
<Setter Property="VerticalAlignment" Value="Stretch" /> <Setter Property="VerticalAlignment" Value="Stretch" />
@@ -980,7 +713,6 @@
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" /> <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" /> <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
<Setter Property="TextBoxStyle" Value="{StaticResource AutoSuggestBoxTextBoxStyle}" /> <Setter Property="TextBoxStyle" Value="{StaticResource AutoSuggestBoxTextBoxStyle}" />
<!--<contract6Present:Setter Property="UseSystemFocusVisuals" Value="{ThemeResource IsApplicationFocusVisualKindReveal}" />-->
<Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}" /> <Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}" />
<Setter Property="primitives:AutoSuggestBoxHelper.KeepInteriorCornersSquare" Value="true" /> <Setter Property="primitives:AutoSuggestBoxHelper.KeepInteriorCornersSquare" Value="true" />
<Setter Property="Template"> <Setter Property="Template">
@@ -988,14 +720,6 @@
<ControlTemplate TargetType="AutoSuggestBox"> <ControlTemplate TargetType="AutoSuggestBox">
<Grid x:Name="LayoutRoot"> <Grid x:Name="LayoutRoot">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="Orientation">
<VisualState x:Name="Landscape" />
<VisualState x:Name="Portrait" />
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="*" /> <ColumnDefinition Width="*" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
@@ -1004,53 +728,56 @@
<RowDefinition Height="*" /> <RowDefinition Height="*" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<TextBox x:Name="TextBox" <VisualStateManager.VisualStateGroups>
Style="{TemplateBinding TextBoxStyle}" <VisualStateGroup x:Name="Orientation">
PlaceholderText="{TemplateBinding PlaceholderText}" <VisualState x:Name="Landscape" />
Header="{TemplateBinding Header}" <VisualState x:Name="Portrait" />
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<TextBox
x:Name="TextBox"
Width="{TemplateBinding Width}" Width="{TemplateBinding Width}"
contract7Present:Description="{TemplateBinding Description}" Margin="0"
Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
Background="{TemplateBinding Background}" Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}" BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}" BorderThickness="{TemplateBinding BorderThickness}"
FontSize="{TemplateBinding FontSize}"
FontFamily="{TemplateBinding FontFamily}"
FontWeight="{TemplateBinding FontWeight}"
FontStretch="{TemplateBinding FontStretch}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
ScrollViewer.BringIntoViewOnFocusChange="False"
Canvas.ZIndex="0" Canvas.ZIndex="0"
Margin="0" CornerRadius="{TemplateBinding CornerRadius}"
Description="{TemplateBinding Description}"
DesiredCandidateWindowAlignment="BottomEdge" DesiredCandidateWindowAlignment="BottomEdge"
FontFamily="{TemplateBinding FontFamily}"
FontSize="{TemplateBinding FontSize}"
FontStretch="{TemplateBinding FontStretch}"
FontWeight="{TemplateBinding FontWeight}"
Foreground="{TemplateBinding Foreground}"
Header="{TemplateBinding Header}"
IsSpellCheckEnabled="False" IsSpellCheckEnabled="False"
UseSystemFocusVisuals="{TemplateBinding UseSystemFocusVisuals}" PlaceholderText="{TemplateBinding PlaceholderText}"
contract7Present:CornerRadius="{TemplateBinding CornerRadius}"/> ScrollViewer.BringIntoViewOnFocusChange="False"
Style="{TemplateBinding TextBoxStyle}"
UseSystemFocusVisuals="{TemplateBinding UseSystemFocusVisuals}" />
<Popup x:Name="SuggestionsPopup"> <Popup x:Name="SuggestionsPopup">
<Border x:Name="SuggestionsContainer" <Border
x:Name="SuggestionsContainer"
Padding="{ThemeResource AutoSuggestListMargin}" Padding="{ThemeResource AutoSuggestListMargin}"
BorderThickness="{ThemeResource AutoSuggestListBorderThemeThickness}"
BorderBrush="{ThemeResource AutoSuggestBoxSuggestionsListBorderBrush}"
Background="{ThemeResource AutoSuggestBoxSuggestionsListBackground}" Background="{ThemeResource AutoSuggestBoxSuggestionsListBackground}"
BorderBrush="{ThemeResource AutoSuggestBoxSuggestionsListBorderBrush}"
BorderThickness="{ThemeResource AutoSuggestListBorderThemeThickness}"
CornerRadius="{ThemeResource OverlayCornerRadius}"> CornerRadius="{ThemeResource OverlayCornerRadius}">
<Border.RenderTransform>
<contract7NotPresent:TranslateTransform x:Name="UpwardTransform" />
</Border.RenderTransform>
<ListView <ListView
x:Name="SuggestionsList" x:Name="SuggestionsList"
MaxHeight="{ThemeResource AutoSuggestListMaxHeight}"
Margin="{ThemeResource AutoSuggestListPadding}"
DisplayMemberPath="{TemplateBinding DisplayMemberPath}" DisplayMemberPath="{TemplateBinding DisplayMemberPath}"
IsItemClickEnabled="True" IsItemClickEnabled="True"
ItemTemplate="{TemplateBinding ItemTemplate}"
ItemTemplateSelector="{TemplateBinding ItemTemplateSelector}"
ItemContainerStyle="{TemplateBinding ItemContainerStyle}" ItemContainerStyle="{TemplateBinding ItemContainerStyle}"
MaxHeight="{ThemeResource AutoSuggestListMaxHeight}" ItemTemplate="{TemplateBinding ItemTemplate}"
Margin="{ThemeResource AutoSuggestListPadding}"> ItemTemplateSelector="{TemplateBinding ItemTemplateSelector}" />
<ListView.ItemContainerTransitions>
<contract7NotPresent:TransitionCollection />
</ListView.ItemContainerTransitions>
</ListView>
</Border> </Border>
</Popup> </Popup>
@@ -1062,33 +789,21 @@
</Style> </Style>
<!-- Copied from https://github.com/microsoft/microsoft-ui-xaml/blob/210349d9d1e0aeb8ee144ec027071a68ac578bdb/dev/CommonStyles/CheckBox_themeresources.xaml#L794 to remove the AnimatedIcon that caused crashes (see #18478). --> <!-- Copied from https://github.com/microsoft/microsoft-ui-xaml/blob/210349d9d1e0aeb8ee144ec027071a68ac578bdb/dev/CommonStyles/CheckBox_themeresources.xaml#L794 to remove the AnimatedIcon that caused crashes (see #18478). -->
<Style x:Key="CheckBoxDefaultStyleOverride" TargetType="CheckBox"> <Style x:Key="CheckBoxDefaultStyleOverride" TargetType="CheckBox">
<Setter Property="Background" <Setter Property="Background" Value="{ThemeResource CheckBoxBackgroundUnchecked}" />
Value="{ThemeResource CheckBoxBackgroundUnchecked}" /> <Setter Property="Foreground" Value="{ThemeResource CheckBoxForegroundUnchecked}" />
<Setter Property="Foreground" <Setter Property="BorderBrush" Value="{ThemeResource CheckBoxBorderBrushUnchecked}" />
Value="{ThemeResource CheckBoxForegroundUnchecked}" /> <Setter Property="Padding" Value="{StaticResource CheckBoxPadding}" />
<Setter Property="BorderBrush"
Value="{ThemeResource CheckBoxBorderBrushUnchecked}" />
<Setter Property="Padding"
Value="{StaticResource CheckBoxPadding}" />
<Setter Property="HorizontalAlignment" Value="Left" /> <Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalContentAlignment" Value="Left" /> <Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="VerticalContentAlignment" Value="Top" /> <Setter Property="VerticalContentAlignment" Value="Top" />
<Setter Property="FontFamily" <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
Value="{ThemeResource ContentControlThemeFontFamily}" /> <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
<Setter Property="FontSize" <Setter Property="MinWidth" Value="{StaticResource CheckBoxMinWidth}" />
Value="{ThemeResource ControlContentThemeFontSize}" /> <Setter Property="MinHeight" Value="{StaticResource CheckBoxHeight}" />
<Setter Property="MinWidth" <Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" />
Value="{StaticResource CheckBoxMinWidth}" /> <Setter Property="FocusVisualMargin" Value="{StaticResource CheckBoxFocusVisualMargin}" />
<Setter Property="MinHeight" <Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}" />
Value="{StaticResource CheckBoxHeight}" />
<Setter Property="UseSystemFocusVisuals"
Value="{StaticResource UseSystemFocusVisuals}" />
<Setter Property="FocusVisualMargin"
Value="{StaticResource CheckBoxFocusVisualMargin}" />
<Setter Property="CornerRadius"
Value="{ThemeResource ControlCornerRadius}" />
</Style> </Style>
</ResourceDictionary> </ResourceDictionary>
</Application.Resources> </Application.Resources>

View File

@@ -17,6 +17,27 @@
<!-- Error tooltip --> <!-- Error tooltip -->
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Highlight">
<VisualState.Setters>
<Setter Target="HighlightBorder.Opacity" Value="0.1" />
<Setter Target="HighlightBorder.BorderBrush" Value="{ThemeResource AccentTextFillColorPrimaryBrush}" />
<Setter Target="HighlightBorder.Background" Value="{ThemeResource AccentTextFillColorPrimaryBrush}" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Error">
<VisualState.Setters>
<Setter Target="HighlightBorder.Opacity" Value="1" />
<Setter Target="HighlightBorder.BorderBrush" Value="{ThemeResource SystemFillColorCriticalBackgroundBrush}" />
<Setter Target="HighlightBorder.Background" Value="{ThemeResource SystemFillColorCriticalBackgroundBrush}" />
<Setter Target="ErrorIcon.Visibility" Value="Visible" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Border <Border
Name="HighlightBorder" Name="HighlightBorder"
Grid.ColumnSpan="4" Grid.ColumnSpan="4"
@@ -48,8 +69,8 @@
Content="" Content=""
IsChecked="{x:Bind Checked, Mode=TwoWay}" IsChecked="{x:Bind Checked, Mode=TwoWay}"
IsTabStop="True" IsTabStop="True"
TabIndex="0"
Style="{StaticResource CheckBoxDefaultStyleOverride}" Style="{StaticResource CheckBoxDefaultStyleOverride}"
TabIndex="0"
XYFocusKeyboardNavigation="Enabled" /> XYFocusKeyboardNavigation="Enabled" />
<Image <Image
@@ -82,16 +103,16 @@
Grid.Column="3" Grid.Column="3"
Width="12" Width="12"
Height="12" Height="12"
CornerRadius="12"
Margin="4,0,8,0" Margin="4,0,8,0"
Background="{ThemeResource SystemFillColorCriticalBrush}" Background="{ThemeResource SystemFillColorCriticalBrush}"
CornerRadius="12"
Visibility="Collapsed"> Visibility="Collapsed">
<TextBlock <TextBlock
HorizontalAlignment="Center" HorizontalAlignment="Center"
VerticalAlignment="Center" VerticalAlignment="Center"
FontFamily="{ThemeResource SymbolThemeFontFamily}" FontFamily="{ThemeResource SymbolThemeFontFamily}"
Foreground="White"
FontSize="8" FontSize="8"
Foreground="White"
Text="&#xE10A;" /> Text="&#xE10A;" />
<ToolTipService.ToolTip> <ToolTipService.ToolTip>
<TextBlock <TextBlock
@@ -100,26 +121,5 @@
TextWrapping="Wrap" /> TextWrapping="Wrap" />
</ToolTipService.ToolTip> </ToolTipService.ToolTip>
</Border> </Border>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="Highlight">
<VisualState.Setters>
<Setter Target="HighlightBorder.Opacity" Value="0.1" />
<Setter Target="HighlightBorder.BorderBrush" Value="{ThemeResource AccentTextFillColorPrimaryBrush}" />
<Setter Target="HighlightBorder.Background" Value="{ThemeResource AccentTextFillColorPrimaryBrush}" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Error">
<VisualState.Setters>
<Setter Target="HighlightBorder.Opacity" Value="1" />
<Setter Target="HighlightBorder.BorderBrush" Value="{ThemeResource SystemFillColorCriticalBackgroundBrush}" />
<Setter Target="HighlightBorder.Background" Value="{ThemeResource SystemFillColorCriticalBackgroundBrush}" />
<Setter Target="ErrorIcon.Visibility" Value="Visible" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</Grid> </Grid>
</UserControl> </UserControl>

View File

@@ -8,8 +8,10 @@
xmlns:local="using:PowerRenameUI" xmlns:local="using:PowerRenameUI"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"> mc:Ignorable="d">
<Window.SystemBackdrop>
<Grid Padding="12" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <MicaBackdrop />
</Window.SystemBackdrop>
<Grid Padding="12">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="0" /> <RowDefinition Height="0" />
<!-- 48 if we need to draw the title bar ourself --> <!-- 48 if we need to draw the title bar ourself -->
@@ -62,7 +64,7 @@
VerticalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal"> Orientation="Horizontal">
<TextBlock x:Uid="TxtBlock_Original" FontWeight="Medium" /> <TextBlock x:Uid="TxtBlock_Original" FontWeight="Medium" />
<TextBlock FontWeight="Medium" Margin="4,0,0,0" > <TextBlock Margin="4,0,0,0" FontWeight="Medium">
<Run Text="(" /><Run Text="{x:Bind OriginalCount, Mode=OneWay}" /><Run Text=")" /> <Run Text="(" /><Run Text="{x:Bind OriginalCount, Mode=OneWay}" /><Run Text=")" />
</TextBlock> </TextBlock>
</StackPanel> </StackPanel>
@@ -75,7 +77,7 @@
VerticalAlignment="Center" VerticalAlignment="Center"
Orientation="Horizontal"> Orientation="Horizontal">
<TextBlock x:Uid="TxtBlock_Renamed" FontWeight="Medium" /> <TextBlock x:Uid="TxtBlock_Renamed" FontWeight="Medium" />
<TextBlock FontWeight="Medium" Margin="4,0,0,0" > <TextBlock Margin="4,0,0,0" FontWeight="Medium">
<Run Text="(" /><Run Text="{x:Bind RenamedCount, Mode=OneWay}" /><Run Text=")" /> <Run Text="(" /><Run Text="{x:Bind RenamedCount, Mode=OneWay}" /><Run Text=")" />
</TextBlock> </TextBlock>
</StackPanel> </StackPanel>
@@ -85,9 +87,9 @@
Grid.Column="1" Grid.Column="1"
Height="32" Height="32"
Margin="0,0,8,0" Margin="0,0,8,0"
BorderThickness="0"
HorizontalAlignment="Right" HorizontalAlignment="Right"
Background="Transparent" Background="Transparent"
BorderThickness="0"
Content="&#xE71C;" Content="&#xE71C;"
FontFamily="{ThemeResource SymbolThemeFontFamily}"> FontFamily="{ThemeResource SymbolThemeFontFamily}">
<Button.Flyout> <Button.Flyout>
@@ -115,27 +117,27 @@
Fill="{ThemeResource DividerStrokeColorDefaultBrush}" /> Fill="{ThemeResource DividerStrokeColorDefaultBrush}" />
<!-- Changing VirtualizationMode to Recycling introduces the issue with popping indent/icons, but makes scrolling slightly faster --> <!-- Changing VirtualizationMode to Recycling introduces the issue with popping indent/icons, but makes scrolling slightly faster -->
<ListView <ListView
x:Name="listView_ExplorerItems"
Grid.Row="1" Grid.Row="1"
Grid.ColumnSpan="6" Grid.ColumnSpan="6"
IsItemClickEnabled="False" IsItemClickEnabled="False"
IsTabStop="false" IsTabStop="false"
ItemsSource="{x:Bind ExplorerItems, Mode=OneWay}" ItemsSource="{x:Bind ExplorerItems, Mode=OneWay}"
SelectionMode="None" SelectionMode="None"
x:Name="listView_ExplorerItems" VirtualizingStackPanel.VirtualizationMode="Standard"
XYFocusKeyboardNavigation="Enabled" XYFocusKeyboardNavigation="Enabled">
VirtualizingStackPanel.VirtualizationMode="Standard">
<ListView.ItemTemplate> <ListView.ItemTemplate>
<DataTemplate x:DataType="local:ExplorerItemViewModel"> <DataTemplate x:DataType="local:ExplorerItemViewModel">
<local:ExplorerItem <local:ExplorerItem
Checked="{x:Bind CheckedVM, Mode=TwoWay, FallbackValue=True}"
Id="{x:Bind IdVM, Mode=OneWay}" Id="{x:Bind IdVM, Mode=OneWay}"
IdStr="{x:Bind IdStrVM}" IdStr="{x:Bind IdStrVM}"
ImagePath="{x:Bind ImagePathVM}"
Indentation="{x:Bind IndentationVM}"
Original="{x:Bind OriginalVM}" Original="{x:Bind OriginalVM}"
Renamed="{x:Bind RenamedVM}" Renamed="{x:Bind RenamedVM}"
Indentation="{x:Bind IndentationVM}" State="{x:Bind StateVM}"
ImagePath="{x:Bind ImagePathVM}" Type="{x:Bind TypeVM}" />
Type="{x:Bind TypeVM}"
Checked="{x:Bind CheckedVM, Mode=TwoWay, FallbackValue=True}"
State="{x:Bind StateVM}" />
</DataTemplate> </DataTemplate>
</ListView.ItemTemplate> </ListView.ItemTemplate>
<ListView.ItemsPanel> <ListView.ItemsPanel>
@@ -372,7 +374,7 @@
<TextBlock <TextBlock
x:Name="ApplyToLabel" x:Name="ApplyToLabel"
x:Uid="TextBox_ApplyTo" x:Uid="TextBox_ApplyTo"
Margin="0,12,0,8" Margin="0,16,0,8"
FontSize="12" FontSize="12"
Foreground="{ThemeResource TextFillColorSecondaryBrush}" /> Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
@@ -397,36 +399,32 @@
<ToggleButton <ToggleButton
x:Name="toggleButton_includeFiles" x:Name="toggleButton_includeFiles"
x:Uid="ToggleButton_IncludeFiles" x:Uid="ToggleButton_IncludeFiles"
Height="31" Height="32"
MinHeight="0" MinHeight="0"
Content="&#xE7C3;" Content="&#xE7C3;"
FontFamily="{ThemeResource SymbolThemeFontFamily}" FontFamily="{ThemeResource SymbolThemeFontFamily}"
IsChecked="True" IsChecked="True" />
Style="{StaticResource CustomToggleButtonStyle}" />
<ToggleButton <ToggleButton
x:Name="toggleButton_includeFolders" x:Name="toggleButton_includeFolders"
x:Uid="ToggleButton_IncludeFolders" x:Uid="ToggleButton_IncludeFolders"
Height="31" Height="32"
MinHeight="0" MinHeight="0"
Content="&#xE8B7;" Content="&#xE8B7;"
FontFamily="{ThemeResource SymbolThemeFontFamily}" FontFamily="{ThemeResource SymbolThemeFontFamily}"
IsChecked="True" IsChecked="True" />
Style="{StaticResource CustomToggleButtonStyle}" />
<ToggleButton <ToggleButton
x:Name="toggleButton_includeSubfolders" x:Name="toggleButton_includeSubfolders"
x:Uid="ToggleButton_IncludeSubFolders" x:Uid="ToggleButton_IncludeSubFolders"
Height="31" Height="32"
MinHeight="0" MinHeight="0"
Content="&#xED41;" Content="&#xED41;"
FontFamily="{ThemeResource SymbolThemeFontFamily}" FontFamily="{ThemeResource SymbolThemeFontFamily}"
IsChecked="True" IsChecked="True" />
Style="{StaticResource CustomToggleButtonStyle}" />
</StackPanel> </StackPanel>
<TextBlock <TextBlock
x:Uid="TextBlock_TextFormatting" x:Uid="TextBlock_TextFormatting"
Margin="0,12,0,8" Margin="0,16,0,8"
FontSize="12" FontSize="12"
Foreground="{ThemeResource TextFillColorSecondaryBrush}" /> Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
@@ -435,48 +433,42 @@
<ToggleButton <ToggleButton
x:Name="toggleButton_lowerCase" x:Name="toggleButton_lowerCase"
x:Uid="ToggleButton_Lowercase" x:Uid="ToggleButton_Lowercase"
Height="31" Height="32"
MinHeight="0" MinHeight="0"
Content="aa" Content="aa"
FontWeight="Medium" FontWeight="Medium" />
Style="{StaticResource CustomToggleButtonStyle}" />
<ToggleButton <ToggleButton
x:Name="toggleButton_upperCase" x:Name="toggleButton_upperCase"
x:Uid="ToggleButton_Uppercase" x:Uid="ToggleButton_Uppercase"
Height="31" Height="32"
MinHeight="0" MinHeight="0"
Content="AA" Content="AA"
FontWeight="Medium" FontWeight="Medium" />
Style="{StaticResource CustomToggleButtonStyle}" />
<ToggleButton <ToggleButton
x:Name="toggleButton_titleCase" x:Name="toggleButton_titleCase"
x:Uid="ToggleButton_TitleCase" x:Uid="ToggleButton_TitleCase"
Height="31" Height="32"
MinHeight="0" MinHeight="0"
Content="Aa" Content="Aa"
FontWeight="Medium" FontWeight="Medium" />
Style="{StaticResource CustomToggleButtonStyle}" />
<ToggleButton <ToggleButton
x:Name="toggleButton_capitalize" x:Name="toggleButton_capitalize"
x:Uid="ToggleButton_Capitalize" x:Uid="ToggleButton_Capitalize"
Height="31" Height="32"
MinHeight="0" MinHeight="0"
Content="Aa Aa" Content="Aa Aa"
FontWeight="Medium" FontWeight="Medium" />
Style="{StaticResource CustomToggleButtonStyle}" />
<AppBarSeparator Margin="5,0,5,0" /> <AppBarSeparator Margin="5,0,5,0" />
<ToggleButton <ToggleButton
x:Name="toggleButton_enumItems" x:Name="toggleButton_enumItems"
x:Uid="ToggleButton_EnumItems" x:Uid="ToggleButton_EnumItems"
MinHeight="32" Height="32"
Content="&#xEA40;" Content="&#xEA40;"
FontFamily="{ThemeResource SymbolThemeFontFamily}" FontFamily="{ThemeResource SymbolThemeFontFamily}" />
Style="{StaticResource CustomToggleButtonStyle}" />
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
<Rectangle <Rectangle
Grid.Row="1" Grid.Row="1"
Height="1" Height="1"
@@ -484,9 +476,6 @@
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
VerticalAlignment="Top" VerticalAlignment="Top"
Fill="{ThemeResource CardStrokeColorDefaultBrush}" /> Fill="{ThemeResource CardStrokeColorDefaultBrush}" />
</Grid> </Grid>
<StackPanel <StackPanel
@@ -534,7 +523,6 @@
Content="&#xE897;" Content="&#xE897;"
FontFamily="{ThemeResource SymbolThemeFontFamily}" /> FontFamily="{ThemeResource SymbolThemeFontFamily}" />
<!--<Button Content="&#xE728;" <!--<Button Content="&#xE728;"
FontFamily="{ThemeResource SymbolThemeFontFamily}" FontFamily="{ThemeResource SymbolThemeFontFamily}"
ToolTipService.ToolTip="Presets" ToolTipService.ToolTip="Presets"
@@ -552,11 +540,8 @@
</MenuFlyout> </MenuFlyout>
</Button.Flyout> </Button.Flyout>
</Button>--> </Button>-->
</StackPanel> </StackPanel>
<SplitButton <SplitButton
x:Name="button_rename" x:Name="button_rename"
x:Uid="ButtonApply" x:Uid="ButtonApply"
@@ -587,10 +572,5 @@
</MenuFlyout> </MenuFlyout>
</SplitButton.Flyout> </SplitButton.Flyout>
</SplitButton> </SplitButton>
<!--<StackPanel x:Name="TitleBar" Orientation="Horizontal">
<Image Source="Assets/PowerRename.png" Width="16" Height="16" VerticalAlignment="Top" Margin="20,9,0,0"/>
<TextBlock Text="PowerRename" Style="{StaticResource CaptionTextBlockStyle}" Margin="18,8,8,0" VerticalAlignment="Top" />
</StackPanel>-->
</Grid> </Grid>
</Window> </Window>