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

ToolRaftReliefControl.axaml « Tools « Controls « UVtools.WPF - github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7f1e337cbfe2c5f7f6228ce2c418075ef4988ddb (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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<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.ToolRaftReliefControl">


  <Grid
    ColumnDefinitions="Auto,10,150,5,Auto"
    RowDefinitions="Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto"
    >

    <TextBlock Text="Relief type:" VerticalAlignment="Center"/>
    <ComboBox Grid.Row="0"
              Grid.Column="2"
              HorizontalAlignment="Stretch"
              SelectedItem="{Binding Operation.ReliefType}"
              Items="{Binding Operation.RaftReliefItems}"/>


    <TextBlock
        Grid.Row="2"
        Grid.Column="0"
        Text="Ignore first:" VerticalAlignment="Center"/>

    <NumericUpDown Grid.Row="2" Grid.Column="2"
                   Minimum="0"
                   Maximum="255"
                   Value="{Binding Operation.IgnoreFirstLayers}"/>
    <TextBlock
        Grid.Row="2" Grid.Column="4"
        Text="layer(s)" VerticalAlignment="Center"/>

    <TextBlock
        Grid.Row="4"
        Grid.Column="0"
        IsVisible="{Binding !Operation.IsDecimate}"
        Text="Pixel brightness:" VerticalAlignment="Center"/>

    <NumericUpDown Grid.Row="4" Grid.Column="2"
                   Minimum="0"
                   Maximum="255"
                   IsVisible="{Binding !Operation.IsDecimate}"
                   Value="{Binding Operation.Brightness}"/>
    <TextBlock
        Grid.Row="4" Grid.Column="4"
        IsVisible="{Binding !Operation.IsDecimate}"
        Text="{Binding Operation.BrightnessPercent, StringFormat=\{0:0.00\}%}" VerticalAlignment="Center"/>



    <TextBlock
        Grid.Row="6"
        IsVisible="{Binding !Operation.IsDecimate}"
        Text="Supports margin:" VerticalAlignment="Center"/>

    <TextBlock
      Grid.Row="6"
      IsVisible="{Binding Operation.IsDecimate}"
      ToolTip.Tip="Raft will be replaced by the present supports and then dilated by this value to thicken the supports and increase the adhesion. 
&#x0a;Use large numbers with tiny supports for best adhesion."
      Text="Dilate supports by:" VerticalAlignment="Center"/>

    <NumericUpDown Grid.Row="6" Grid.Column="2"
              Minimum="0"
              Maximum="255"
              Value="{Binding Operation.DilateIterations}"/>
    <TextBlock
      Grid.Row="6" Grid.Column="4"
      Text="px" VerticalAlignment="Center"/>


    <TextBlock
      Grid.Row="8"
      Text="Wall margin:" VerticalAlignment="Center"
      IsVisible="{Binding !Operation.IsDecimate}"
      />

    <NumericUpDown Grid.Row="8" Grid.Column="2"
              Minimum="1"
              Maximum="255"
              Value="{Binding Operation.WallMargin}"
              IsVisible="{Binding !Operation.IsDecimate}"/>
    <TextBlock
      Grid.Row="8" Grid.Column="4"
      Text="px" VerticalAlignment="Center"
      IsVisible="{Binding !Operation.IsDecimate}"/>

    <TextBlock
      Grid.Row="10"
      Text="Hole diameter:" VerticalAlignment="Center"
      IsVisible="{Binding Operation.IsRelief}"
      />

    <NumericUpDown Grid.Row="10" Grid.Column="2"
              Minimum="10"
              Maximum="255"
              Value="{Binding Operation.HoleDiameter}"
              IsVisible="{Binding Operation.IsRelief}"/>
    <TextBlock
      Grid.Row="10" Grid.Column="4"
      Text="px" VerticalAlignment="Center"
      IsVisible="{Binding Operation.IsRelief}"/>

    <TextBlock
      Grid.Row="12"
      Text="Hole spacing:" VerticalAlignment="Center"
      IsVisible="{Binding Operation.IsRelief}"
      />

    <NumericUpDown Grid.Row="12" Grid.Column="2"
              Minimum="10"
              Maximum="255"
              Value="{Binding Operation.HoleSpacing}"
              IsVisible="{Binding Operation.IsRelief}"/>
    <TextBlock
      Grid.Row="12" Grid.Column="4"
      Text="px" VerticalAlignment="Center"
      IsVisible="{Binding Operation.IsRelief}"/>

  </Grid>

</UserControl>