blob: d8f914ee87edb54e9179b5eb2bfda0c2683d5868 (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
<?xml version="1.0"?>
<VerticalStack>
<Menu>
<MenuItem Caption="File" Width="Fit">
<MenuItem Command="{CMDTest}"/>
<MenuItem Caption="Open"/>
<MenuItem Caption="Save"/>
<MenuItem Caption="Quit"/>
</MenuItem>
<MenuItem Caption="Edit" Name="edit" Width="Fit">
<MenuItem Caption="Cut"/>
<MenuItem Caption="Copy"/>
<MenuItem Caption="Paste"/>
<MenuItem Caption="Special" Name="special" Width="Fit">
<MenuItem Caption="Cut"/>
<MenuItem Caption="Copy"/>
<MenuItem Caption="Paste"/>
</MenuItem>
<MenuItem Caption="Special2" Name="special" Width="Fit">
<MenuItem Caption="Cut"/>
<MenuItem Caption="Copy"/>
<MenuItem Caption="Paste"/>
</MenuItem>
</MenuItem>
<MenuItem Caption="Help" Width="Fit">
<MenuItem Caption="About"/>
<MenuItem Caption="Help"/>
</MenuItem>
</Menu>
<HorizontalStack Height="Fit">
<Label Text="Hover:" Width="50" Foreground="Grey"/>
<Label Text="{HoverWidget}" Font="mono, 8"/>
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Text="Focus:" Width="50" Foreground="Grey"/>
<Label Text="{FocusedWidget}" Font="mono, 8"/>
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Text="Active:" Width="50" Foreground="Grey"/>
<Label Text="{ActiveWidget}" Font="mono, 8"/>
</HorizontalStack>
<Container Fit="true" Margin="50" Background="SlateGrey">
<Label Text="MouseEvents" Margin="3" Focusable="true" Fit="true"
Background="Jet"
Foreground="DimGrey"
TextAlignment="Center"
MouseEnter="{Foreground=White}"
MouseLeave="{Foreground=DimGrey}"
MouseDown="{Background=DarkRed}"
MouseClick="{Foreground=Green}"
MouseDoubleClick="{Foreground=Yellow}"
MouseUp="{Background=Jet}"/>
</Container>
<TextBox Width="300" Margin="10"/>
<Slider Width="300" Height="12"/>
<ComboBox Data="{TestList}" Width="120">
<ItemTemplate DataType="Crow.Color">
<HorizontalStack
HorizontalAlignment="Left"
Height="Fit" Width="200" Margin="1" Focusable="true"
MouseEnter="{Background=hgradient|0:DarkRed|1:Transparent}"
MouseLeave="{Background=Transparent}">
<Widget Height="12" Width="20" Background="{}" Margin="0" CornerRadius="3"/>
<Label Text="{}" Margin="0" Width="Stretched"/>
</HorizontalStack>
</ItemTemplate>
</ComboBox>
<HorizontalStack Height="Fit" Margin="1" Background="DimGrey" Width="200">
<VerticalStack Spacing="2" Width="50%">
<CheckBox Caption="test" MouseEnter="{Background=Blue}" MouseLeave="{Background=Transparent}"/>
<CheckBox />
<CheckBox />
<CheckBox IsChecked="true"/>
</VerticalStack>
<VerticalStack Spacing="2" Width="50%">
<RadioButton Fit="true"/>
<RadioButton Fit="true" IsChecked="true"/>
<RadioButton Fit="true"/>
<RadioButton Fit="true"/>
</VerticalStack>
</HorizontalStack>
</VerticalStack>
|