forked from Phaiax/Key-n-Stroke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLabeledSlider.xaml
22 lines (22 loc) · 1011 Bytes
/
LabeledSlider.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<UserControl x:Class="KeyNStroke.LabeledSlider"
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:KeyNStroke"
mc:Ignorable="d"
d:DesignHeight="40" d:DesignWidth="800">
<Grid x:Name="layout_root">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Target="{Binding ElementName=slider}" Content="{Binding Title}" Margin="0,-3,0,0"/>
<Slider x:Name="slider"
Grid.Column="1"
Maximum="100"
Minimum="0"
Value="50"
ValueChanged="Slider_ValueChanged" />
</Grid>
</UserControl>