mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user