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

ToolThresholdControl.axaml « Tools « Controls « UVtools.WPF - github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5e42a42d6c3602a385453609e038611a3ac1c4ea (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
<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.ToolThresholdControl">

  <Grid RowDefinitions="Auto,10,Auto" ColumnDefinitions="Auto,10,*">

    <TextBlock 
      VerticalAlignment="Center" 
      Text="Preset helpers:"/>
    <ComboBox
      Grid.Column="2"
      SelectedIndex="{Binding SelectedPresetIndex}" 
      MinWidth="200"
      Items="{Binding Presets}"
      />

    <TextBlock
      Grid.Row="2"
      VerticalAlignment="Center"
      IsEnabled="{Binding IsThresholdEnabled}"
      Text="Threshold:"/>

    <StackPanel 
      Grid.Row="2"
      Grid.Column="2"
      Orientation="Horizontal"
      Spacing="10">
      <NumericUpDown
        Minimum="0"
        Maximum="255"
        MinWidth="80"
        IsEnabled="{Binding IsThresholdEnabled}"
        Value="{Binding Operation.Threshold}"
        />

      <TextBlock
        Margin="10,0,0,0"
        VerticalAlignment="Center"
        IsEnabled="{Binding IsMaximumEnabled}"
      Text="Max.:"/>

      <NumericUpDown
        Minimum="0"
        Maximum="255"
        MinWidth="80"
        IsEnabled="{Binding IsMaximumEnabled}"
        Value="{Binding Operation.Maximum}"
        />

      <ComboBox
        MinWidth="120"
        IsEnabled="{Binding IsTypeEnabled}"
        Items="{Binding Operation.ThresholdTypes}"
        SelectedItem="{Binding Operation.Type}"/>
      
    </StackPanel>

  </Grid>


</UserControl>