2022-08-27 02:17:20 +03:00
|
|
|
<winuiex:WindowEx
|
|
|
|
|
x:Class="MeasureToolUI.MainWindow"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:contract7NotPresent="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractNotPresent(Windows.Foundation.UniversalApiContract,7)"
|
|
|
|
|
xmlns:contract7Present="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract,7)"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2023-01-31 00:00:11 +01:00
|
|
|
xmlns:p="using:PowerToys.MeasureToolUI.Properties"
|
2022-08-27 02:17:20 +03:00
|
|
|
xmlns:winuiex="using:WinUIEx"
|
|
|
|
|
IsAlwaysOnTop="True"
|
|
|
|
|
IsMaximizable="False"
|
|
|
|
|
IsMinimizable="False"
|
|
|
|
|
IsResizable="False"
|
|
|
|
|
IsShownInSwitchers="False"
|
|
|
|
|
IsTitleBarVisible="False"
|
|
|
|
|
mc:Ignorable="d">
|
|
|
|
|
<winuiex:WindowEx.Backdrop>
|
|
|
|
|
<winuiex:AcrylicSystemBackdrop
|
|
|
|
|
DarkFallbackColor="#1c1c1c"
|
|
|
|
|
DarkLuminosityOpacity="0.96"
|
|
|
|
|
DarkTintColor="#202020"
|
|
|
|
|
DarkTintOpacity="0.5"
|
|
|
|
|
LightFallbackColor="#EEEEEE"
|
2022-10-07 10:31:43 +02:00
|
|
|
LightLuminosityOpacity="0.90"
|
|
|
|
|
LightTintColor="#F3F3F3"
|
2022-08-27 02:17:20 +03:00
|
|
|
LightTintOpacity="0" />
|
|
|
|
|
</winuiex:WindowEx.Backdrop>
|
2023-07-11 16:13:01 +02:00
|
|
|
|
2022-08-27 02:17:20 +03:00
|
|
|
<Grid>
|
|
|
|
|
<Grid.Resources>
|
|
|
|
|
<SolidColorBrush x:Key="ToggleButtonBackground" Color="Transparent" />
|
|
|
|
|
<SolidColorBrush x:Key="ButtonBackground" Color="Transparent" />
|
|
|
|
|
<StaticResource x:Key="ButtonBackgroundPointerOver" ResourceKey="ControlSolidFillColorDefaultBrush" />
|
|
|
|
|
|
|
|
|
|
<Style BasedOn="{StaticResource DefaultButtonStyle}" TargetType="Button">
|
2023-07-11 16:13:01 +02:00
|
|
|
<Setter Property="Width" Value="32" />
|
|
|
|
|
<Setter Property="Height" Value="32" />
|
2022-08-27 02:17:20 +03:00
|
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
|
|
|
<Setter Property="FontFamily" Value="{ThemeResource SymbolThemeFontFamily}" />
|
2023-07-11 16:13:01 +02:00
|
|
|
<Setter Property="FontSize" Value="12" />
|
2022-08-27 02:17:20 +03:00
|
|
|
<Setter Property="Padding" Value="0" />
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="ToggleButtonRadioButtonStyle" TargetType="ToggleButton">
|
2023-07-11 16:13:01 +02:00
|
|
|
<Setter Property="Width" Value="32" />
|
|
|
|
|
<Setter Property="Height" Value="32" />
|
2022-08-27 02:17:20 +03:00
|
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
|
|
|
<Setter Property="FontFamily" Value="{ThemeResource SymbolThemeFontFamily}" />
|
|
|
|
|
<Setter Property="FontSize" Value="16" />
|
|
|
|
|
<Setter Property="Padding" Value="0" />
|
|
|
|
|
<Setter Property="Background" Value="{ThemeResource ToggleButtonBackground}" />
|
|
|
|
|
<Setter Property="BackgroundSizing" Value="InnerBorderEdge" />
|
|
|
|
|
<Setter Property="Foreground" Value="{ThemeResource ToggleButtonForeground}" />
|
|
|
|
|
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" />
|
|
|
|
|
<Setter Property="FocusVisualMargin" Value="-3" />
|
|
|
|
|
<Setter Property="CornerRadius" Value="{StaticResource ControlCornerRadius}" />
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="ToggleButton">
|
|
|
|
|
<ContentPresenter
|
|
|
|
|
x:Name="ContentPresenter"
|
|
|
|
|
Padding="{TemplateBinding Padding}"
|
|
|
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
|
contract7NotPresent:CornerRadius="{ThemeResource ControlCornerRadius}"
|
|
|
|
|
contract7Present:BackgroundSizing="{TemplateBinding BackgroundSizing}"
|
|
|
|
|
contract7Present:CornerRadius="{TemplateBinding CornerRadius}"
|
|
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
|
|
ContentTransitions="{TemplateBinding ContentTransitions}">
|
|
|
|
|
<contract7Present:ContentPresenter.BackgroundTransition>
|
|
|
|
|
<contract7Present:BrushTransition Duration="0:0:0.083" />
|
|
|
|
|
</contract7Present: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 ControlSolidFillColorDefaultBrush}" />
|
|
|
|
|
</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 ToggleButtonForegroundChecked}" />
|
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="BorderBrush">
|
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleButtonBorderBrushChecked}" />
|
|
|
|
|
</ObjectAnimationUsingKeyFrames>
|
|
|
|
|
<contract7Present:ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="BackgroundSizing">
|
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleButtonCheckedStateBackgroundSizing}" />
|
|
|
|
|
</contract7Present: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>
|
|
|
|
|
<contract7Present:ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="BackgroundSizing">
|
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleButtonCheckedStateBackgroundSizing}" />
|
|
|
|
|
</contract7Present: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>
|
|
|
|
|
|
|
|
|
|
</Grid.Resources>
|
|
|
|
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
Orientation="Horizontal"
|
2023-04-27 16:38:24 +02:00
|
|
|
Spacing="8"
|
|
|
|
|
Loaded="StackPanel_Loaded">
|
2022-08-27 02:17:20 +03:00
|
|
|
<ToggleButton
|
2023-04-27 16:38:24 +02:00
|
|
|
Name="btnBounds"
|
2022-08-27 02:17:20 +03:00
|
|
|
AutomationProperties.Name="{x:Bind p:Resources.Bounds}"
|
|
|
|
|
Click="BoundsTool_Click"
|
|
|
|
|
Content=""
|
|
|
|
|
Style="{StaticResource ToggleButtonRadioButtonStyle}"
|
2022-09-09 21:25:05 +03:00
|
|
|
KeyboardAcceleratorPlacementMode="Auto"
|
|
|
|
|
ToolTipService.ToolTip="{x:Bind p:Resources.Bounds}">
|
|
|
|
|
<ToggleButton.KeyboardAccelerators>
|
|
|
|
|
<KeyboardAccelerator Key="Number1" Modifiers="Control" Invoked="KeyboardAccelerator_Invoked"/>
|
|
|
|
|
</ToggleButton.KeyboardAccelerators>
|
|
|
|
|
</ToggleButton>
|
2022-08-27 02:17:20 +03:00
|
|
|
<ToggleButton
|
2023-04-27 16:38:24 +02:00
|
|
|
Name="btnSpacing"
|
2022-08-27 02:17:20 +03:00
|
|
|
AutomationProperties.Name="{x:Bind p:Resources.Spacing}"
|
|
|
|
|
Click="MeasureTool_Click"
|
|
|
|
|
Style="{StaticResource ToggleButtonRadioButtonStyle}"
|
|
|
|
|
ToolTipService.ToolTip="{x:Bind p:Resources.Spacing}">
|
2023-07-11 16:13:01 +02:00
|
|
|
<FontIcon Glyph="" />
|
2022-09-09 21:25:05 +03:00
|
|
|
<ToggleButton.KeyboardAccelerators>
|
|
|
|
|
<KeyboardAccelerator Key="Number2" Modifiers="Control" Invoked="KeyboardAccelerator_Invoked"/>
|
|
|
|
|
</ToggleButton.KeyboardAccelerators>
|
2022-08-27 02:17:20 +03:00
|
|
|
</ToggleButton>
|
|
|
|
|
|
|
|
|
|
<ToggleButton
|
2023-04-27 16:38:24 +02:00
|
|
|
Name="btnHorizontalSpacing"
|
2022-08-27 02:17:20 +03:00
|
|
|
AutomationProperties.Name="{x:Bind p:Resources.HorizontalSpacing}"
|
|
|
|
|
Click="HorizontalMeasureTool_Click"
|
|
|
|
|
Style="{StaticResource ToggleButtonRadioButtonStyle}"
|
|
|
|
|
ToolTipService.ToolTip="{x:Bind p:Resources.HorizontalSpacing}">
|
2023-07-11 16:13:01 +02:00
|
|
|
<FontIcon Glyph="" />
|
2022-09-09 21:25:05 +03:00
|
|
|
<ToggleButton.KeyboardAccelerators>
|
|
|
|
|
<KeyboardAccelerator Key="Number3" Modifiers="Control" Invoked="KeyboardAccelerator_Invoked"/>
|
|
|
|
|
</ToggleButton.KeyboardAccelerators>
|
2022-08-27 02:17:20 +03:00
|
|
|
</ToggleButton>
|
|
|
|
|
<ToggleButton
|
2023-04-27 16:38:24 +02:00
|
|
|
Name="btnVerticalSpacing"
|
2022-08-27 02:17:20 +03:00
|
|
|
AutomationProperties.Name="{x:Bind p:Resources.VerticalSpacing}"
|
|
|
|
|
Click="VerticalMeasureTool_Click"
|
|
|
|
|
Style="{StaticResource ToggleButtonRadioButtonStyle}"
|
|
|
|
|
ToolTipService.ToolTip="{x:Bind p:Resources.VerticalSpacing}">
|
|
|
|
|
<FontIcon Glyph="" RenderTransformOrigin="0.5,0.5">
|
|
|
|
|
<FontIcon.RenderTransform>
|
|
|
|
|
<RotateTransform Angle="90" />
|
|
|
|
|
</FontIcon.RenderTransform>
|
|
|
|
|
</FontIcon>
|
2022-09-09 21:25:05 +03:00
|
|
|
<ToggleButton.KeyboardAccelerators>
|
|
|
|
|
<KeyboardAccelerator Key="Number4" Modifiers="Control" Invoked="KeyboardAccelerator_Invoked"/>
|
|
|
|
|
</ToggleButton.KeyboardAccelerators>
|
2022-08-27 02:17:20 +03:00
|
|
|
</ToggleButton>
|
2023-07-11 16:13:01 +02:00
|
|
|
<AppBarSeparator/>
|
2022-08-27 02:17:20 +03:00
|
|
|
<Button
|
|
|
|
|
Click="ClosePanelTool_Click"
|
|
|
|
|
Content=""
|
2023-07-11 16:13:01 +02:00
|
|
|
ToolTipService.ToolTip="{x:Bind p:Resources.Close}"
|
|
|
|
|
Foreground="{StaticResource CloseButtonBackgroundPointerOver}">
|
2022-09-09 21:25:05 +03:00
|
|
|
<Button.KeyboardAccelerators>
|
|
|
|
|
<KeyboardAccelerator Key="Escape" Invoked="KeyboardAccelerator_Invoked"/>
|
|
|
|
|
</Button.KeyboardAccelerators>
|
|
|
|
|
</Button>
|
2022-08-27 02:17:20 +03:00
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</winuiex:WindowEx>
|