aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/TemplatedContainer/buttons.crow
blob: 32a5b83fae6c5b65131e2df0e9961263a7c7148a (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
<?xml version="1.0" encoding="UTF-8"?>
<VerticalStack Margin="10" Background="Grey">
	<Button
		Foreground="LightGrey"
		MouseEnter="{Foreground=White}"
		MouseLeave="{Foreground=LightGrey}"
		Background="vgradient|0:LightGrey|0.1:Grey|0.9:Grey|1:Jet"
		MouseUp="{Background=vgradient|0:LightGrey|0.1:Grey|0.9:Grey|1:Jet}"
		MouseDown="{Background=vgradient|0:Jet|0.1:Grey|0.9:Grey|1:LightGrey}">
		<Template>
			<Border Foreground="Black" CornerRadius="10" Background="{./Background}" Margin="7">
				<Label Foreground="{./Foreground}" Text="{./Caption}"/>
			</Border>
		</Template>
	</Button >
	<CheckBox Width="200"
		Foreground="Black"
		Background="vgradient|0:LightGrey|0.1:Grey|0.9:Grey|1:Jet"
		Unchecked="{Background=vgradient|0:LightGrey|0.1:Grey|0.9:Grey|1:Jet};{Foreground=Black}"
		Checked="{Background=vgradient|0:Jet|0.1:Grey|0.9:Grey|1:LightGrey};{Foreground=DodgerBlue}">
		<Template>
			<Border Foreground="{./Foreground}" CornerRadius="10" Background="{./Background}" Margin="7">
				<Label Text="{./Caption}"/>
			</Border>
		</Template>
	</CheckBox >
	<HorizontalStack Height="Fit" Width="Fit">
		<RadioButton Width="200"
			Foreground="Black"
			Background="vgradient|0:LightGrey|0.1:Grey|0.9:Grey|1:Jet"
			Unchecked="{Background=vgradient|0:LightGrey|0.1:Grey|0.9:Grey|1:Jet};{Foreground=Black}"
			Checked="{Background=vgradient|0:Jet|0.1:Grey|0.9:Grey|1:LightGrey};{Foreground=DodgerBlue}">
			<Template>
				<Border Foreground="{./Foreground}" CornerRadius="10" Background="{./Background}" Margin="7">
					<Label Text="{./Caption}"/>
				</Border>
			</Template>
		</RadioButton >
		<RadioButton Width="200"
			Foreground="Black"
			Background="vgradient|0:LightGrey|0.1:Grey|0.9:Grey|1:Jet"
			Unchecked="{Background=vgradient|0:LightGrey|0.1:Grey|0.9:Grey|1:Jet};{Foreground=Black}"
			Checked="{Background=vgradient|0:Jet|0.1:Grey|0.9:Grey|1:LightGrey};{Foreground=DodgerBlue}">
			<Template>
				<Border Foreground="{./Foreground}" CornerRadius="10" Background="{./Background}" Margin="7">
					<Label Text="{./Caption}"/>
				</Border>
			</Template>
		</RadioButton >
		<RadioButton Width="200"
			Foreground="Black"
			Background="vgradient|0:LightGrey|0.1:Grey|0.9:Grey|1:Jet"
			Unchecked="{Background=vgradient|0:LightGrey|0.1:Grey|0.9:Grey|1:Jet};{Foreground=Black}"
			Checked="{Background=vgradient|0:Jet|0.1:Grey|0.9:Grey|1:LightGrey};{Foreground=DodgerBlue}">
			<Template>
				<Border Foreground="{./Foreground}" CornerRadius="10" Background="{./Background}" Margin="7">
					<Label Text="{./Caption}"/>
				</Border>
			</Template>
		</RadioButton >
	</HorizontalStack>
</VerticalStack>