diff options
Diffstat (limited to 'UVtools.WPF/Controls/Tools/ToolCalculatorControl.axaml')
-rw-r--r-- | UVtools.WPF/Controls/Tools/ToolCalculatorControl.axaml | 75 |
1 files changed, 38 insertions, 37 deletions
diff --git a/UVtools.WPF/Controls/Tools/ToolCalculatorControl.axaml b/UVtools.WPF/Controls/Tools/ToolCalculatorControl.axaml index 8e3c9aa..d71fd0f 100644 --- a/UVtools.WPF/Controls/Tools/ToolCalculatorControl.axaml +++ b/UVtools.WPF/Controls/Tools/ToolCalculatorControl.axaml @@ -3,31 +3,31 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" - MaxWidth="720" + MaxWidth="800" x:Class="UVtools.WPF.Controls.Tools.ToolCalculatorControl"> <TabControl> <TabItem Header="Millimeters to pixels"> <Grid RowDefinitions="Auto,10,Auto,30,Auto"> <Border Background="White" - BorderBrush="Black" BorderThickness="1" Padding="10"> - <TextBlock VerticalAlignment="Center" - TextWrapping="Wrap"> - <TextBlock.Text> + BorderBrush="Black" BorderThickness="1"> + <TextBox VerticalAlignment="Center" + Classes="TransparentReadOnly" + Padding="10"> + <TextBox.Text> <MultiBinding StringFormat="\{0\}

Formula: \{1\}"> <Binding Path="Operation.CalcMillimetersToPixels.Description"/> <Binding Path="Operation.CalcMillimetersToPixels.Formula"/> </MultiBinding> - </TextBlock.Text> - </TextBlock> + </TextBox.Text> + </TextBox> </Border> <Grid Grid.Row="2" RowDefinitions="Auto,10,Auto" - ColumnDefinitions="Auto,10,100,5,Auto,30,Auto,10,100,5,Auto" - > + ColumnDefinitions="Auto,10,150,5,Auto,30,Auto,10,150,5,Auto"> <!-- Resolution --> <TextBlock @@ -85,7 +85,7 @@ Minimum="0" Maximum="100000" Increment="0.01" - FormatString="{}{0:0.00}" + FormatString="F02" Value="{Binding Operation.CalcMillimetersToPixels.DisplayWidth}" /> <TextBlock @@ -107,7 +107,7 @@ Minimum="0" Maximum="100000" Increment="0.01" - FormatString="{}{0:0.00}" + FormatString="F02" Value="{Binding Operation.CalcMillimetersToPixels.DisplayHeight}" /> <TextBlock @@ -121,7 +121,7 @@ <Grid Grid.Row="4" RowDefinitions="Auto,10,Auto,10,Auto,10,Auto,10,Auto" - ColumnDefinitions="Auto,10,100,5,Auto" + ColumnDefinitions="Auto,10,150,5,Auto" > <TextBlock Grid.Row="0" @@ -136,7 +136,7 @@ Minimum="0" Maximum="100000" Increment="0.5" - FormatString="{}{0:0.00}" + FormatString="F02" Value="{Binding Operation.CalcMillimetersToPixels.Millimeters}" /> <TextBlock @@ -237,23 +237,24 @@ <Grid RowDefinitions="Auto,10,Auto"> <Border Background="White" - BorderBrush="Black" BorderThickness="1" Padding="10"> - <TextBlock VerticalAlignment="Center" - TextWrapping="Wrap"> - <TextBlock.Text> + BorderBrush="Black" BorderThickness="1"> + <TextBox VerticalAlignment="Center" + Classes="TransparentReadOnly" + Padding="10"> + <TextBox.Text> <MultiBinding StringFormat="\{0\}

Formula: \{1\}"> <Binding Path="Operation.CalcLightOffDelay.Description"/> <Binding Path="Operation.CalcLightOffDelay.Formula"/> </MultiBinding> - </TextBlock.Text> - </TextBlock> + </TextBox.Text> + </TextBox> </Border> <Grid Grid.Row="2" RowDefinitions="Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto" - ColumnDefinitions="Auto,10,100,5,Auto,30,Auto,10,100,5,Auto" + ColumnDefinitions="Auto,10,150,5,Auto,30,Auto,10,150,5,Auto" > <!-- Normal --> @@ -270,7 +271,7 @@ Minimum="0" Maximum="1000" Increment="1.0" - FormatString="{}{0:0.00}" + FormatString="F02" Value="{Binding Operation.CalcLightOffDelay.LiftHeight}"/> <TextBlock Grid.Row="0" @@ -291,7 +292,7 @@ Minimum="0" Maximum="1000" Increment="1.0" - FormatString="{}{0:0.00}" + FormatString="F02" Value="{Binding Operation.CalcLightOffDelay.LiftSpeed}"/> <TextBlock Grid.Row="2" @@ -312,7 +313,7 @@ Minimum="0" Maximum="1000" Increment="1.0" - FormatString="{}{0:0.00}" + FormatString="F02" Value="{Binding Operation.CalcLightOffDelay.RetractSpeed}"/> <TextBlock Grid.Row="4" @@ -333,7 +334,7 @@ Minimum="0" Maximum="1000" Increment="0.5" - FormatString="{}{0:0.00}" + FormatString="F02" Value="{Binding Operation.CalcLightOffDelay.WaitTime}"/> <TextBlock Grid.Row="6" @@ -412,7 +413,7 @@ Minimum="0" Maximum="1000" Increment="1.0" - FormatString="{}{0:0.00}" + FormatString="F02" Value="{Binding Operation.CalcLightOffDelay.BottomLiftHeight}"/> <TextBlock Grid.Row="0" @@ -433,7 +434,7 @@ Minimum="0" Maximum="1000" Increment="1.0" - FormatString="{}{0:0.00}" + FormatString="F02" Value="{Binding Operation.CalcLightOffDelay.BottomLiftSpeed}"/> <TextBlock Grid.Row="2" @@ -454,7 +455,7 @@ Minimum="0" Maximum="1000" Increment="0.5" - FormatString="{}{0:0.00}" + FormatString="F02" Value="{Binding Operation.CalcLightOffDelay.BottomWaitTime}"/> <TextBlock Grid.Row="6" @@ -512,22 +513,22 @@ <Grid RowDefinitions="Auto,10,Auto,30,Auto"> <Border Background="White" - BorderBrush="Black" BorderThickness="1" Padding="10"> - <TextBlock VerticalAlignment="Center" TextWrapping="Wrap"> - <TextBlock.Text> + BorderBrush="Black" BorderThickness="1"> + <TextBox VerticalAlignment="Center" Classes="TransparentReadOnly" Padding="10"> + <TextBox.Text> <MultiBinding StringFormat="\{0\}

Formula: \{1\}"> <Binding Path="Operation.CalcOptimalModelTilt.Description"/> <Binding Path="Operation.CalcOptimalModelTilt.Formula"/> </MultiBinding> - </TextBlock.Text> - </TextBlock> + </TextBox.Text> + </TextBox> </Border> <Grid Grid.Row="2" RowDefinitions="Auto,10,Auto" - ColumnDefinitions="Auto,10,100,5,Auto,30,Auto,10,100,5,Auto" + ColumnDefinitions="Auto,10,150,5,Auto,30,Auto,10,150,5,Auto" > <!-- Resolution --> @@ -586,7 +587,7 @@ Minimum="0" Maximum="100000" Increment="0.01" - FormatString="{}{0:0.00}" + FormatString="F02" Value="{Binding Operation.CalcOptimalModelTilt.DisplayWidth}" /> <TextBlock @@ -608,7 +609,7 @@ Minimum="0" Maximum="100000" Increment="0.01" - FormatString="{}{0:0.00}" + FormatString="F02" Value="{Binding Operation.CalcOptimalModelTilt.DisplayHeight}" /> <TextBlock @@ -622,7 +623,7 @@ <Grid Grid.Row="4" RowDefinitions="Auto,10,Auto,10,Auto" - ColumnDefinitions="Auto,10,100,5,Auto" + ColumnDefinitions="Auto,10,150,5,Auto" > <TextBlock Grid.Row="0" @@ -637,7 +638,7 @@ Minimum="0.01" Maximum="0.20" Increment="0.01" - FormatString="{}{0:0.00}" + FormatString="F02" ClipValueToMinMax="True" Value="{Binding Operation.CalcOptimalModelTilt.LayerHeight}" /> |