blob: e2f466bed09f9cb46593b014e2299ab3e64e4821 (
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
|
<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"
xmlns:uc="clr-namespace:UVtools.WPF.Controls"
mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="450"
x:Class="UVtools.WPF.Controls.Tools.ToolBlurControl">
<StackPanel Spacing="10">
<Grid
ColumnDefinitions="Auto,10,*"
RowDefinitions="Auto,10,Auto">
<TextBlock
VerticalAlignment="Center"
Text="Algorithm:"/>
<ComboBox
Grid.Column="2"
HorizontalAlignment="Left"
Width="450"
HorizontalContentAlignment="Stretch"
Items="{Binding Operation.BlurOperation, Converter={StaticResource EnumToCollectionConverter}, Mode=OneTime}"
SelectedItem="{Binding Operation.BlurOperation, Converter={StaticResource FromValueDescriptionToEnumConverter}}"/>
<TextBlock
VerticalAlignment="Center"
Grid.Row="2"
IsEnabled="{Binding Operation.IsSizeEnabled}"
Text="Size:"/>
<NumericUpDown
Grid.Row="2"
Grid.Column="2"
HorizontalAlignment="Left"
Width="150"
Minimum="1"
IsEnabled="{Binding Operation.IsSizeEnabled}"
Value="{Binding Operation.Size}"
/>
</Grid>
<uc:KernelControl Name="KernelCtrl"
IsVisible="{Binding $parent[UserControl].DataContext.Operation.IsKernelVisible}"/>
</StackPanel>
</UserControl>
|