forked from ProgramistycznySwir/GFX-05-Histograms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEffectItem.xaml
27 lines (27 loc) · 1.35 KB
/
EffectItem.xaml
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
<UserControl x:Class="GFX_05_Histograms.EffectItem"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:GFX_05_Histograms"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid Height="50">
<Border BorderThickness="1" BorderBrush="Gray">
<StackPanel Orientation="Horizontal">
<CheckBox
IsChecked="{Binding EffectData.IsActive, Mode=TwoWay}"
Margin="10"/>
<TextBox
Text="{Binding ElementName=slider, Path=Value, UpdateSourceTrigger=PropertyChanged}"
TextAlignment="Right" Width="30"
Visibility="{Binding TextBox_IsVisible}" />
<Slider Name="slider"
Value="{Binding EffectData.Value, Mode=TwoWay}"
Maximum="1" Width="100"
Visibility="{Binding Slider_IsVisible}"/>
<Label Content="{Binding EffectData.Name}"/>
</StackPanel>
</Border>
</Grid>
</UserControl>