diff options
Diffstat (limited to 'UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs')
-rw-r--r-- | UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs b/UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs index 2ab8826..58107ad 100644 --- a/UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs +++ b/UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; +using System.ComponentModel; using System.Globalization; using Avalonia; using Avalonia.Controls; @@ -38,7 +35,7 @@ namespace UVtools.WPF.Controls.Tools Modifier = modifier; modifier.NewValue = modifier.OldValue.Clamp(modifier.Minimum, modifier.Maximum); - + Name = new TextBlock { Text = $"{modifier.Name}:", @@ -47,6 +44,8 @@ namespace UVtools.WPF.Controls.Tools Tag = this, }; + if(!string.IsNullOrWhiteSpace(modifier.Description)) ToolTip.SetTip(Name, modifier.Description); + OldValue = new TextBlock { Text = modifier.OldValue.ToString(CultureInfo.InvariantCulture), |