Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.WPF/Controls/Tools/ToolRedrawModelControl.axaml')
-rw-r--r--UVtools.WPF/Controls/Tools/ToolRedrawModelControl.axaml72
1 files changed, 39 insertions, 33 deletions
diff --git a/UVtools.WPF/Controls/Tools/ToolRedrawModelControl.axaml b/UVtools.WPF/Controls/Tools/ToolRedrawModelControl.axaml
index cce0f0e..92bd9ef 100644
--- a/UVtools.WPF/Controls/Tools/ToolRedrawModelControl.axaml
+++ b/UVtools.WPF/Controls/Tools/ToolRedrawModelControl.axaml
@@ -4,46 +4,40 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="UVtools.WPF.Controls.Tools.ToolRedrawModelControl">
- <StackPanel Spacing="10">
- <Grid RowDefinitions="Auto,10,Auto,10,Auto,10,Auto"
- ColumnDefinitions="Auto,10,100,5,300,5,Auto">
+ <Grid RowDefinitions="Auto,10,Auto,10,Auto,10,Auto"
+ ColumnDefinitions="Auto,10,Auto">
<TextBlock Grid.Row="0" Grid.Column="0"
ToolTip.Tip="Select the sliced file without supports and raft. (Model B)"
VerticalAlignment="Center"
Text="Body file:"/>
- <TextBox Grid.Row="0" Grid.Column="2" Grid.ColumnSpan="3"
- ToolTip.Tip="Select the sliced file without supports and raft. (Model B)"
- IsReadOnly="True"
- Watermark="Select the sliced file without supports and raft. (Model B)"
- Text="{Binding Operation.FilePath}"/>
- <Button Grid.Row="0" Grid.Column="6"
- ToolTip.Tip="Select the sliced file without supports and raft. (Model B)"
- Command="{Binding ImportFile}">
- <Image Source="/Assets/Icons/file-import-16x16.png"/>
- </Button>
+ <StackPanel Grid.Row="0" Grid.Column="2" Orientation="Horizontal" Spacing="1">
+ <TextBox
+ ToolTip.Tip="Select the sliced file without supports and raft. (Model B)"
+ IsReadOnly="True"
+ Watermark="Select the sliced file without supports and raft. (Model B)"
+ HorizontalAlignment="Stretch"
+ Width="505"
+ Text="{Binding Operation.FilePath}"/>
+ <Button
+ VerticalAlignment="Stretch"
+ ToolTip.Tip="Select the sliced file without supports and raft. (Model B)"
+ Command="{Binding ImportFile}">
+ <Image Source="/Assets/Icons/file-import-16x16.png"/>
+ </Button>
+ </StackPanel>
+
<TextBlock Grid.Row="2" Grid.Column="0"
VerticalAlignment="Center"
Text="Redraw:"/>
- <ComboBox Grid.Row="2" Grid.Column="2"
- SelectedItem="{Binding Operation.RedrawType}"
- Items="{Binding Operation.RedrawTypesItems}"/>
- <TextBlock Grid.Row="4" Grid.Column="0"
- VerticalAlignment="Center"
- Text="Brightness:"/>
- <NumericUpDown Grid.Row="4" Grid.Column="2"
- ClipValueToMinMax="True"
- Minimum="0"
- Maximum="255"
- Increment="1"
- Value="{Binding Operation.Brightness}"/>
- <TextBlock Grid.Row="4" Grid.Column="4"
- VerticalAlignment="Center"
- Text="{Binding Operation.BrightnessPercent, StringFormat=\{0:0.00\}%}"/>
+ <StackPanel Grid.Row="2" Grid.Column="2" Orientation="Horizontal" Spacing="10">
+ <ComboBox
+ SelectedItem="{Binding Operation.RedrawType}"
+ Items="{Binding Operation.RedrawTypesItems}"
+ Width="120"
+ />
- <StackPanel Grid.Row="2" Grid.Column="4" Grid.ColumnSpan="3"
- Orientation="Horizontal" Spacing="10">
<CheckBox
VerticalAlignment="Center"
IsVisible="{Binding !Operation.RedrawType}"
@@ -58,9 +52,21 @@
ToolTip.Tip="If enabled, all supports pixels with no physical contact with the model will be ignored and maintain the same original brightness."
Content="Ignore contact-less pixels"/>
</StackPanel>
-
- </Grid>
+ <TextBlock Grid.Row="4" Grid.Column="0"
+ VerticalAlignment="Center"
+ Text="Brightness:"/>
- </StackPanel>
+ <StackPanel Grid.Row="4" Grid.Column="2" Orientation="Horizontal" Spacing="5">
+ <NumericUpDown
+ Minimum="0"
+ Maximum="255"
+ Increment="1"
+ Value="{Binding Operation.Brightness}"/>
+ <TextBlock
+ VerticalAlignment="Center"
+ Text="{Binding Operation.BrightnessPercent, StringFormat=\{0:0.00\}%}"/>
+ </StackPanel>
+
+ </Grid>
</UserControl>