1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
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"
x:Class="UVtools.WPF.Controls.Tools.ToolLayerExportImageControl">
<StackPanel Orientation="Vertical" Spacing="10">
<Grid RowDefinitions="Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto"
ColumnDefinitions="Auto,10,500,5,Auto">
<TextBlock Grid.Row="0" Grid.Column="0"
VerticalAlignment="Center"
Text="Output folder:"/>
<TextBox Grid.Row="0" Grid.Column="2"
VerticalAlignment="Center"
IsReadOnly="True"
Text="{Binding Operation.OutputFolder}"/>
<Button Grid.Row="0" Grid.Column="4"
VerticalAlignment="Stretch"
Command="{Binding ChooseFolder}">
<Image Source="/Assets/Icons/open-16x16.png"/>
</Button>
<TextBlock Grid.Row="2" Grid.Column="0"
VerticalAlignment="Center"
Text="Prepend filename:"/>
<TextBox Grid.Row="2" Grid.Column="2" Grid.ColumnSpan="3"
VerticalAlignment="Center"
Text="{Binding Operation.Filename}"/>
<TextBlock Grid.Row="4" Grid.Column="0"
VerticalAlignment="Center"
Text="Image type:"/>
<ComboBox Grid.Row="4" Grid.Column="2" Grid.ColumnSpan="3"
HorizontalAlignment="Stretch"
Items="{Binding Operation.ImageType, Converter={StaticResource EnumToCollectionConverter}, Mode=OneTime}"
SelectedItem="{Binding Operation.ImageType, Converter={StaticResource FromValueDescriptionToEnumConverter}}"/>
<TextBlock Grid.Row="6" Grid.Column="0"
VerticalAlignment="Center"
Text="Rotate direction:"/>
<ComboBox Grid.Row="6" Grid.Column="2" Grid.ColumnSpan="3"
HorizontalAlignment="Stretch"
Items="{Binding Operation.RotateDirection, Converter={StaticResource EnumToCollectionConverter}, Mode=OneTime}"
SelectedItem="{Binding Operation.RotateDirection, Converter={StaticResource FromValueDescriptionToEnumConverter}}"/>
<TextBlock Grid.Row="8" Grid.Column="0"
VerticalAlignment="Center"
Text="Flip direction:"/>
<ComboBox Grid.Row="8" Grid.Column="2" Grid.ColumnSpan="3"
HorizontalAlignment="Stretch"
Items="{Binding Operation.FlipDirection, Converter={StaticResource EnumToCollectionConverter}, Mode=OneTime}"
SelectedItem="{Binding Operation.FlipDirection, Converter={StaticResource FromValueDescriptionToEnumConverter}}"/>
<CheckBox Grid.Row="10" Grid.Column="2"
ToolTip.Tip="Example:

Enabled: layer0010

Disabled: layer10"
Content="Pad layer index filename with left zeros"
IsChecked="{Binding Operation.PadLayerIndex}"/>
<CheckBox Grid.Row="12" Grid.Column="2"
Content="Crop image by selected ROI"
IsVisible="{Binding ParentWindow.IsROIVisible}"
IsChecked="{Binding Operation.CropByROI}"/>
</Grid>
</StackPanel>
</UserControl>
|