diff options
Diffstat (limited to 'UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml.cs')
-rw-r--r-- | UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml.cs b/UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml.cs index eaff935..f68e6f2 100644 --- a/UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml.cs +++ b/UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml.cs @@ -383,6 +383,11 @@ namespace UVtools.WPF.Controls.Tools MinWidth = 150 }; + if (numFLOAT.DecimalPlates > 0) + { + control.FormatString = $"F{numFLOAT.DecimalPlates}"; + } + var valueProperty = control.GetObservable(NumericUpDown.ValueProperty); valueProperty.Subscribe(value => { @@ -407,6 +412,11 @@ namespace UVtools.WPF.Controls.Tools MinWidth = 150 }; + if (numDOUBLE.DecimalPlates > 0) + { + control.FormatString = $"F{numDOUBLE.DecimalPlates}"; + } + var valueProperty = control.GetObservable(NumericUpDown.ValueProperty); valueProperty.Subscribe(value => { @@ -431,6 +441,11 @@ namespace UVtools.WPF.Controls.Tools MinWidth = 150 }; + if (numDECIMAL.DecimalPlates > 0) + { + control.FormatString = $"F{numDECIMAL.DecimalPlates}"; + } + var valueProperty = control.GetObservable(NumericUpDown.ValueProperty); valueProperty.Subscribe(value => { |