blob: 300ecc89d199b694e0697b568d013336f658a77e (
plain)
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
|
<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="500" d:DesignHeight="200"
x:Class="UVtools.WPF.Controls.Tools.ToolResizeControl">
<StackPanel Orientation="Vertical" Spacing="10">
<StackPanel Orientation="Horizontal" Spacing="10">
<TextBlock VerticalAlignment="Center" Text="X:"/>
<NumericUpDown
MinWidth="100"
MaxWidth="150"
Minimum="1"
Maximum="10000"
Increment="0.1"
FormatString="{}{0:0.00} %"
Value="{Binding Operation.X}"
/>
<TextBlock
Margin="10,0,0,0"
VerticalAlignment="Center"
Text="Y:"
IsEnabled="{Binding !#ConstrainXY.IsChecked}"
/>
<NumericUpDown
MinWidth="100"
MaxWidth="150"
Minimum="1"
Maximum="10000"
Increment="0.1"
FormatString="{}{0:0.00} %"
Value="{Binding Operation.Y}"
IsEnabled="{Binding !#ConstrainXY.IsChecked}"
/>
<CheckBox
Name="ConstrainXY"
IsChecked="{Binding Operation.ConstrainXY}"
Content="Constrain Proportions" />
</StackPanel>
<CheckBox
ToolTip.Tip="If checked, resize will gradually adjust the scale factor from the percentage specified to 100% as the operation progresses from the starting layer to the ending layer."
IsChecked="{Binding Operation.IsFade}"
Content="Increase or decrease towards 100%" />
</StackPanel>
</UserControl>
|