[MeasureTool]Add setting to specify the default measure style (#25645)

* MeasureTool: Add possibility to specify the default measure style

* MeasureTool: Improve description of user setting

* MeasureTool: Use enum value instead of magic number
This commit is contained in:
Sebastian Zanoni
2023-04-27 16:38:24 +02:00
committed by GitHub
parent 4af9f0172d
commit 78d705890a
9 changed files with 130 additions and 1 deletions

View File

@@ -223,6 +223,23 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
}
}
public int DefaultMeasureStyle
{
get
{
return Settings.Properties.DefaultMeasureStyle.Value;
}
set
{
if (Settings.Properties.DefaultMeasureStyle.Value != value)
{
Settings.Properties.DefaultMeasureStyle.Value = value;
NotifyPropertyChanged();
}
}
}
public void NotifyPropertyChanged([CallerMemberName] string propertyName = null)
{
OnPropertyChanged(propertyName);