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

ToolEditParametersControl.axaml « Tools « Controls « UVtools.WPF - github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cc7cbe5bcddcef6952063040a234c8953a59b247 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<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.ToolEditParametersControl">

  <StackPanel Spacing="10">

    <CheckBox
      IsChecked="{Binding Operation.PerLayerOverride}"
      IsVisible="{Binding SupportPerLayerSettings}"
      Content="Change settings per a layer range"/>

    <StackPanel Orientation="Horizontal" Spacing="5" IsVisible="{Binding Operation.PerLayerOverride}">
        <TextBlock
            VerticalAlignment="Center"
            Text="Sequentially set each"/>

        <NumericUpDown
            VerticalAlignment="Center"
            Minimum="1"
            Maximum="100000"
            Increment="1"
            Value="{Binding Operation.SetNumberOfLayer}"/>

        <TextBlock
            VerticalAlignment="Center"
            Text="layers, and skip the next"/>

        <NumericUpDown
            VerticalAlignment="Center"
            Minimum="0"
            Maximum="100000"
            Increment="1"
            Value="{Binding Operation.SkipNumberOfLayer}"/>

        <TextBlock
            VerticalAlignment="Center"
            Text="layers"/>
    </StackPanel>

    <Grid
      Name="grid"
      RowDefinitions="Auto"
      ColumnDefinitions="Auto,Auto,*,Auto,Auto"
      VerticalAlignment="Center"
      ShowGridLines="True">

      <TextBlock
        Grid.Column="0"
        VerticalAlignment="Center"
        FontWeight="Bold"
        Padding="15"
        Text="Property"/>
      <TextBlock
        Grid.Column="1"
        VerticalAlignment="Center"
        HorizontalAlignment="Center"
        FontWeight="Bold"
        Padding="15"
        Text="Old value"/>
      <TextBlock
        Grid.Column="2"
        VerticalAlignment="Center"
        HorizontalAlignment="Center"
        FontWeight="Bold"
        Padding="15"
        Text="New value"/>
      <TextBlock
        Grid.Column="3"
        VerticalAlignment="Center"
        FontWeight="Bold"
        Padding="15"
        Text="Unit"/>
      <TextBlock
        Grid.Column="4"
        VerticalAlignment="Center"
        HorizontalAlignment="Center"
        FontWeight="Bold"
        Padding="15"
        Text="Reset"/>
    </Grid>
  </StackPanel>
</UserControl>