2022-08-27 02:17:20 +03:00
|
|
|
<Page
|
|
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.MeasureToolPage"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2024-01-12 18:01:40 +01:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2022-08-27 02:17:20 +03:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2024-01-12 18:01:40 +01:00
|
|
|
xmlns:tkcontrols="using:CommunityToolkit.WinUI.Controls"
|
2023-09-14 18:41:31 +02:00
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI"
|
2022-11-23 19:57:09 +01:00
|
|
|
AutomationProperties.LandmarkType="Main"
|
|
|
|
|
mc:Ignorable="d">
|
|
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsPageControl x:Uid="MeasureTool" ModuleImageSource="ms-appx:///Assets/Settings/Modules/ScreenRuler.png">
|
|
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
2023-09-14 18:41:31 +02:00
|
|
|
<StackPanel ChildrenTransitions="{StaticResource SettingsCardsAnimations}" Orientation="Vertical">
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="MeasureTool_EnableMeasureTool"
|
2023-07-20 00:12:46 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/FluentIcons/FluentIconsScreenRuler.png}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.IsEnabled, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<InfoBar
|
2024-01-25 14:59:00 +01:00
|
|
|
x:Uid="GPO_SettingIsManaged"
|
2022-10-26 14:02:31 +01:00
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Severity="Informational" />
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="MeasureTool_ActivationSettings" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="MeasureTool_ActivationShortcut" HeaderIcon="{ui:FontIcon Glyph=}">
|
|
|
|
|
<controls:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind Path=ViewModel.ActivationShortcut, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="MeasureTool_DefaultMeasureStyle">
|
2023-04-27 16:38:24 +02:00
|
|
|
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind Path=ViewModel.DefaultMeasureStyle, Mode=TwoWay}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<ComboBoxItem x:Uid="MeasureTool_DefaultMeasureStyle_None" />
|
2023-04-27 16:38:24 +02:00
|
|
|
<ComboBoxItem x:Uid="MeasureTool_DefaultMeasureStyle_Bounds" />
|
|
|
|
|
<ComboBoxItem x:Uid="MeasureTool_DefaultMeasureStyle_Spacing" />
|
|
|
|
|
<ComboBoxItem x:Uid="MeasureTool_DefaultMeasureStyle_Horizontal_Spacing" />
|
|
|
|
|
<ComboBoxItem x:Uid="MeasureTool_DefaultMeasureStyle_Vertical_Spacing" />
|
|
|
|
|
</ComboBox>
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-08-27 02:17:20 +03:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
</controls:SettingsGroup>
|
2022-08-30 05:36:15 -07:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="MeasureTool_Settings" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="MeasureTool_ContinuousCapture" HeaderIcon="{ui:FontIcon Glyph=}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<ToggleSwitch x:Uid="MeasureTool_ContinuousCapture_ToggleSwitch" IsOn="{x:Bind ViewModel.ContinuousCapture, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-09-20 18:59:18 +02:00
|
|
|
<InfoBar
|
2022-08-30 05:36:15 -07:00
|
|
|
x:Uid="MeasureTool_ContinuousCapture_Information"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.ShowContinuousCaptureWarning, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.ShowContinuousCaptureWarning, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Severity="Warning" />
|
2022-08-30 05:36:15 -07:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard x:Uid="MeasureTool_PerColorChannelEdgeDetection" HeaderIcon="{ui:FontIcon Glyph=}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<ToggleSwitch x:Uid="MeasureTool_PerColorChannelEdgeDetection_ToggleSwitch" IsOn="{x:Bind ViewModel.PerColorChannelEdgeDetection, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-09-05 15:39:56 +03:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard x:Uid="MeasureTool_PixelTolerance">
|
2022-11-23 19:57:09 +01:00
|
|
|
<Slider
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
Maximum="255"
|
|
|
|
|
Minimum="0"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.PixelTolerance, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-08-27 02:17:20 +03:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<!--<tkcontrols:SettingsCard x:Uid="MeasureTool_UnitsOfMeasure" HeaderIcon="{ui:FontIcon Glyph=}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<ComboBox SelectedIndex="{x:Bind Path=ViewModel.UnitsOfMeasure, Mode=TwoWay}" MinWidth="{StaticResource SettingActionControlMinWidth}">
|
|
|
|
|
<ComboBoxItem x:Uid="MeasureTool_UnitsOfMeasure_Pixels" />
|
|
|
|
|
<ComboBoxItem x:Uid="MeasureTool_UnitsOfMeasure_Inches" />
|
|
|
|
|
<ComboBoxItem x:Uid="MeasureTool_UnitsOfMeasure_Centimeters" />
|
|
|
|
|
</ComboBox>
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>-->
|
2022-08-30 05:36:15 -07:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard x:Uid="MeasureTool_DrawFeetOnCross">
|
2023-09-14 18:41:31 +02:00
|
|
|
<ToggleSwitch x:Uid="MeasureTool_DrawFeetOnCross_ToggleSwitch" IsOn="{x:Bind ViewModel.DrawFeetOnCross, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard x:Uid="MeasureTool_MeasureCrossColor">
|
|
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.CrossColor, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</controls:SettingsGroup>
|
2022-08-27 02:17:20 +03:00
|
|
|
</StackPanel>
|
2024-01-12 18:01:40 +01:00
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:PageLink x:Uid="LearnMore_MeasureTool" Link="https://aka.ms/PowerToysOverview_ScreenRuler" />
|
|
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
<controls:PageLink x:Uid="Attribution_Rooler" Link="https://github.com/peteblois/rooler" />
|
|
|
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
</controls:SettingsPageControl>
|
2022-08-27 02:17:20 +03:00
|
|
|
</Page>
|