aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/Divers/testSlider.crow
blob: d70500001c7da5463824440b261a9b5fda9ea5ba (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
65
<?xml version="1.0"?>
<HorizontalStack Margin="50">
	<CheckBox Name="inverted" Background="DarkSlateGrey" Caption="Inverted" Width="Fit" Foreground="Black"/>

	<VerticalStack Spacing="10" Width="50%">
		<Slider Background="DarkGrey" Height="20" Width="Stretched" Inverted="{../../inverted.IsChecked}"/>
		<Slider Background="RoyalBlue" Height="50" Width="Stretched" CursorSize="50"  Inverted="{../../inverted.IsChecked}">
			<Template>
				<Group Background="DarkGrey" >
					<Gauge Height="50%" Background="Onyx" Value="{./Value}" Maximum="{./Maximum}" Minimum="{Minimum}" Orientation="{./Orientation}"
						Inverted="{./Inverted}"/>
					<Container Name="Cursor" Background="White" >
						<Label Text="{./Value}" Foreground="Black"/>
					</Container>
				</Group>
			</Template>	
		</Slider>
		<Slider Background="Transparent" Margin="2" Height="10" Width="Stretched" Inverted="{../../inverted.IsChecked}"/>
		<Slider Background="Transparent" CursorSize="10" Height="12" Inverted="{../../inverted.IsChecked}">
			<Template>
				<Group Background="DarkGrey" >
					<Gauge Height="50%" Background="Onyx" Value="{./Value}" Maximum="{./Maximum}" Minimum="{Minimum}" Orientation="{./Orientation}"
						Inverted="{./Inverted}"/>
					<Widget Name="Cursor" Background="White" />
				</Group>			
			</Template>
		</Slider>
		
		<Slider Height="10" Width="Stretched" Inverted="{../../inverted.IsChecked}" />
		
		
		<Slider ClipToClientRect='false' Background="DarkGrey" CursorSize="50" Height="12" CornerRadius="5" Inverted="{../../inverted.IsChecked}" />
		<Slider ClipToClientRect='false' CacheEnabled='false' Background="Transparent" CursorSize="20" Height="12" Width="Stretched" Inverted="{../../inverted.IsChecked}" />
	</VerticalStack>
	
	<HorizontalStack Spacing="10" >
		<Slider Orientation="Vertical" Width="20" Height="Stretched" Inverted="{../../inverted.IsChecked}"/>
		<Slider Orientation="Vertical" Width="50" Height="Stretched" Background="RoyalBlue"  CursorSize="50" Inverted="{../../inverted.IsChecked}">
			<Template>
				<Group Background="DarkGrey" >
					<Gauge Width="50%" Background="Onyx" Value="{./Value}" Maximum="{./Maximum}" Minimum="{Minimum}" Orientation="{./Orientation}"
						Inverted="{./Inverted}"/>
					<Container Name="Cursor" Background="White" >
						<Label Text="{./Value}" Foreground="Black"/>
					</Container>
				</Group>
			</Template>	
		</Slider>
		<Slider Orientation="Vertical" Width="10" Height="Stretched" Background="Transparent" Margin="2" Inverted="{../../inverted.IsChecked}"/>
		<Slider Orientation="Vertical" Width="12" Height="Stretched" Background="Transparent" CursorSize="10" Inverted="{../../inverted.IsChecked}">
			<Template>
				<Group Background="DarkGrey" >
					<Gauge Width="50%" Background="Onyx" Value="{./Value}" Maximum="{./Maximum}" Minimum="{Minimum}" Orientation="{./Orientation}"
						Inverted="{./Inverted}"/>
					<Widget Name="Cursor" Background="White" />
				</Group>			
			</Template>
		</Slider>
		
		<Slider Width="10" Orientation="Vertical" Inverted="{../../inverted.IsChecked}"/>
				
		<Slider Width="12" Height="Stretched" Orientation="Vertical" ClipToClientRect='false' Background="DarkGrey" CursorSize="50" CornerRadius="5" Inverted="{../../inverted.IsChecked}"/>
		<Slider Width="12" Height="Stretched" Orientation="Vertical" ClipToClientRect='false' CacheEnabled='false' Background="Transparent" CursorSize="20" Inverted="{../../inverted.IsChecked}"/>
	</HorizontalStack>	
</HorizontalStack>