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

ToolMorphControl.axaml « Tools « Controls « UVtools.WPF - github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 868a47c51d4f016d859c6021b85b5cbe9376eab3 (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
<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="600" d:DesignHeight="400"
             x:Class="UVtools.WPF.Controls.Tools.ToolMorphControl">

  <StackPanel>
    <Grid RowDefinitions="Auto,10,Auto" ColumnDefinitions="Auto,10,*">
      <TextBlock
        ToolTip.Tip="Selects the number of iterations/passes to perform on each layer using this mutator.
  &#x0a;Enable the 'Chamfer' to chamfer the iteration over layers, you can use a start iteration higher than end to perform a inverse chamfer.
  &#x0a;WARNING: Using high iteration values can destroy your model depending on the mutator being used, please use low values or with caution!"
      VerticalAlignment="Center"
      Text="Iterations:"/>


      <StackPanel
        Grid.Row="0"
        Grid.Column="2"
        Orientation="Horizontal" Spacing="10">

        <NumericUpDown
          Minimum="1"
          Width="140"
          Value="{Binding Operation.IterationsStart}"
          />

        <TextBlock
          VerticalAlignment="Center"
          Text="To:"
          IsEnabled="{Binding Operation.Chamfer}"/>

        <NumericUpDown
          Minimum="1"
          Width="140"
          Value="{Binding Operation.IterationsEnd}"
          IsEnabled="{Binding Operation.Chamfer}"
          />

        <CheckBox
          ToolTip.Tip="Allow the number of iterations to be gradually varied as the operation progresses from the starting layer to the ending layer."
          Content="Chamfer"
          IsChecked="{Binding Operation.Chamfer}"
          />
      </StackPanel>

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

      <ComboBox
        Grid.Row="2"
        Grid.Column="2"
        HorizontalAlignment="Stretch"
        Items="{Binding Operation.MorphOperation, Converter={StaticResource EnumToCollectionConverter}, Mode=OneTime}"
        SelectedItem="{Binding Operation.MorphOperation, Converter={StaticResource FromValueDescriptionToEnumConverter}}"
        />

    </Grid>

    <Border 
      Margin="0,10,0,0" >
      <Expander>
        <Expander.Header>
          <TextBlock Text="Kernel - Advanced options (Click to expand)"
                     FontWeight="Bold"
                     Cursor="Hand"/>
        </Expander.Header>
        <uc:KernelControl
          Name="KernelCtrl"
          Margin="0,10,0,0"
          />
      </Expander>
    </Border>

  </StackPanel>
  
  
</UserControl>