diff options
Diffstat (limited to 'UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs')
-rw-r--r-- | UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs b/UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs index d0ac7e1..d51bca0 100644 --- a/UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs +++ b/UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs @@ -60,16 +60,18 @@ namespace UVtools.WPF.Controls.Tools { //DecimalPlaces = modifier.DecimalPlates, VerticalAlignment = VerticalAlignment.Center, + HorizontalAlignment = HorizontalAlignment.Stretch, Minimum = (double) modifier.Minimum, Maximum = (double) modifier.Maximum, Increment = modifier.DecimalPlates == 0 ? 1 : 0.5, Value = (double)modifier.NewValue, Tag = this, - Width = 100, + //Width = 100, + ClipValueToMinMax = true }; if (modifier.DecimalPlates > 0) { - NewValue.FormatString = "{0:0.00}"; + NewValue.FormatString = "F02"; } Unit = new TextBlock @@ -87,7 +89,8 @@ namespace UVtools.WPF.Controls.Tools VerticalAlignment = VerticalAlignment.Center, Tag = this, Padding = new Thickness(5), - Content = new Image {Source = App.GetBitmapFromAsset("/Assets/Icons/undo-16x16.png")} + Content = new Image {Source = App.GetBitmapFromAsset("/Assets/Icons/undo-16x16.png")}, + HorizontalAlignment = HorizontalAlignment.Stretch }; ResetButton.Click += ResetButtonOnClick; NewValue.ValueChanged += NewValueOnValueChanged; @@ -110,8 +113,7 @@ namespace UVtools.WPF.Controls.Tools { InitializeComponent(); - App.SlicerFile.RefreshPrintParametersModifiersValues(); - BaseOperation = new OperationEditParameters(App.SlicerFile.PrintParameterModifiers); + BaseOperation = new OperationEditParameters(SlicerFile); if (Operation.Modifiers is null || Operation.Modifiers.Length == 0) { |