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

ToolLightBleedCompensationControl.axaml « Tools « Controls « UVtools.WPF - github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 294927e00a9e291f16ff8f97c5941ba0a7540dec (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
<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.ToolLightBleedCompensationControl">
  <Grid RowDefinitions="Auto,10,Auto,10,Auto,10,Auto" ColumnDefinitions="Auto,10,500">
    <TextBlock Grid.Row="0" Grid.Column="0" 
                   VerticalAlignment="Center"
                   Text="Pixel lookup mode:"/>

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

    <TextBlock Grid.Row="2" Grid.Column="0"
               VerticalAlignment="Center"
               ToolTip.Tip="List of brightnesses to subtract for each subsequent pixel, format: 1-254, 1-254, 1-254, ..."
               Text="Dim subsequent pixels by:"/>

    <TextBox Grid.Row="2" Grid.Column="2"
                 VerticalAlignment="Center"
                 Text="{Binding Operation.DimBy}"/>
        
        <TextBlock Grid.Row="4" Grid.Column="0"
                   VerticalAlignment="Center"
                   Text="Minimum pixel brightness:"/>

        <TextBlock Grid.Row="4" Grid.Column="2"
                   VerticalAlignment="Center"
                   Text="{Binding Operation.MinimumBrightness, StringFormat={}{0} of 255}"/>

        <TextBlock Grid.Row="6" Grid.Column="0"
                   VerticalAlignment="Center"
                   Text="Maximum subtraction:"/>

        <TextBlock Grid.Row="6" Grid.Column="2"
                   VerticalAlignment="Center"
                   Text="{Binding Operation.MaximumSubtraction, StringFormat={}{0} of 255}"/>
  </Grid>
</UserControl>