-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
33 lines (33 loc) · 1.36 KB
/
MainWindow.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
28
29
30
31
32
33
<Window x:Class="FillLevelControlTest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:FillLevelControlTest"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Fill Level Control Demo"
Width="799"
Height="450"
mc:Ignorable="d">
<Grid>
<ScrollBar x:Name="FillLevel"
Width="16"
Margin="20,20,0,20"
HorizontalAlignment="Left"
Maximum="100"
Minimum="0"
Orientation="Vertical"
RenderTransformOrigin="0.5,0.5"
SmallChange="1"
Value="55">
<ScrollBar.RenderTransform>
<RotateTransform Angle="180" />
</ScrollBar.RenderTransform>
</ScrollBar>
<local:FillLevelControl x:Name="FillLevelControl"
Margin="82,20,20,20"
Maximum="100"
Minimum="0"
Value="{Binding Value,
ElementName=FillLevel}" />
</Grid>
</Window>