blob: 3c53ab0119257190c23812aaf5db9e5a856ee5a1 (
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
<?xml version="1.0"?>
<Window Title="Showcase" Height="90%" Width="90%">
<HorizontalStack >
<VerticalStack Width="30%" Margin="5">
<GroupBox Caption="Performance" Height="Fit">
<VerticalStack Width="90%" Height="Fit" Spacing="2" >
<HorizontalStack Height="Fit">
<Label Text="Fps:" Style="FpsLabel"/>
<Label Text="{fps}" Style="FpsDisp"/>
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Text="Min:" Style="FpsLabel"/>
<Label Text="{fpsMin}" Style="FpsDisp"/>
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Text="Max:" Style="FpsLabel"/>
<Label Text="{fpsMax}" Style="FpsDisp"/>
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Text="Update:" Style="FpsLabel"/>
<Label Text="{update}" Style="FpsDisp"/>
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Text="Layouting:" Style="FpsLabel"/>
<Label Text="{layouting}" Style="FpsDisp"/>
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Text="Clipping:" Style="FpsLabel"/>
<Label Text="{clipping}" Style="FpsDisp"/>
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Text="Drawing:" Style="FpsLabel"/>
<Label Text="{drawing}" Style="FpsDisp"/>
</HorizontalStack>
</VerticalStack>
</GroupBox>
<Label Width="Stretched" Margin="3" Background="Onyx"/>
<TextBox Text="TextBox" Multiline="true" Margin="3"/>
<HorizontalStack Height="Fit" Margin="5" Background="Onyx" CornerRadius="10">
<VerticalStack Spacing="5" Width="50%">
<CheckBox Fit="true" Caption="test"/>
<CheckBox Fit="true"/>
<CheckBox Fit="true"/>
<CheckBox Fit="true" IsChecked="true"/>
</VerticalStack>
<VerticalStack Spacing="5" Width="50%">
<RadioButton Fit="true"/>
<RadioButton Fit="true" IsChecked="true"/>
<RadioButton Fit="true"/>
<RadioButton Fit="true"/>
</VerticalStack>
</HorizontalStack>
<HorizontalStack Height="Fit" Margin="5">
<Label Text="MouseEvents" Width="50%" Margin="3"
Background="Onyx"
Foreground="DimGray"
TextAlignment="Center"
MouseEnter="{Foreground=White}"
MouseLeave="{Foreground=DimGray}"
MouseDown="{Background=DarkRed}"
MouseUp="{Background=Onyx}"/>
<Label Text="MouseEvents" Width="50%" Margin="3"
Background="Onyx"
Foreground="DimGray"
TextAlignment="Center"
MouseEnter="{Foreground=White}"
MouseLeave="{Foreground=DimGray}"
MouseDown="{Background=Mantis}"
MouseUp="{Background=Onyx}"/>
</HorizontalStack>
<GroupBox Caption="Templated controls" Height="Fit" Margin="5">
<HorizontalStack Height="Fit">
<VerticalStack Width="50%">
<CheckBox IsChecked="true" Style="CheckBox2"/>
<CheckBox Style="CheckBox2"/>
<CheckBox Style="CheckBox2"/>
<CheckBox Style="CheckBox2"/>
</VerticalStack>
<Splitter/>
<VerticalStack Width="50%">
<RadioButton Style="RadioButton2"/>
<RadioButton Style="RadioButton2"/>
<RadioButton Style="RadioButton2"/>
<RadioButton Style="RadioButton2"/>
</VerticalStack>
</HorizontalStack>
</GroupBox>
<HorizontalStack Height="Fit">
<Label Text="Spinner"/>
<Spinner Fit="true"/>
</HorizontalStack>
<HorizontalStack Height="Fit">
<Button Caption="Button"/>
<Button Caption="Button" IsEnabled="false"/>
</HorizontalStack>
</VerticalStack>
<Splitter/>
<VerticalStack Width="40%" Margin="5" Spacing="5">
<Expandable Background="DimGray">
<Image Path="#Crow.Images.Icons.crow.svg"/>
</Expandable>
<Popper Background="DimGray" >
<Border Fit="True" Background="DimGray" CornerRadius="0" BorderWidth="1">
<Image Path="#Crow.Images.Icons.crow.svg" Width="100" Height="100" Margin="10"
MouseEnter="{Background=LightGray}"
MouseLeave="{Background=Transparent}"/>
</Border>
</Popper>
<Slider Height="10" Width="90%"/>
<Container Height="Fit" Width="200" Background="Onyx" Margin="2" CornerRadius="5">
<ProgressBar Background="DimGray" Height="10" Value="50"/>
</Container>
<Image Path="#Crow.Images.Icons.crow.svg" Width="60" Height="60" Background="LightGray" />
<!-- <TabView Name="tabview1"
Height="120" Orientation="Horizontal" Spacing="15">
<TabItem Name="TabItem1" Caption="Tab 1" Margin="0">
<VerticalStack Fit="true">
<CheckBox/>
<CheckBox/>
<CheckBox/>
<CheckBox/>
</VerticalStack>
</TabItem>
<TabItem Name="TabItem2" Caption="Tab 2" Background="Gray">
<VerticalStack Fit="true">
<RadioButton/>
<RadioButton/>
<RadioButton/>
<RadioButton/>
</VerticalStack>
</TabItem>
<TabItem Name="TabItem3" Caption="Tab 3" Background="Gray">
<Container Margin="5" CornerRadius="2">
<TextBox Height="Stretched" Margin="5" Multiline="true" TextAlignment="TopLeft"/>
</Container>
</TabItem>
</TabView>-->
<MessageBox Movable="false"/>
<ColorPicker SelectedColor="{²../go.Background}" Name="colorPicker" Background="Onyx" Margin="5" Fit="True" />
<GraphicObject Name="go" Width="100" Height="60" Background="DarkBlue"/>
</VerticalStack>
<Splitter/>
<VerticalStack Width="30%" Margin="5">
<Border Margin="5" Height="Fit">
<Label Width="Stretched" Margin="1" Text="{../../dv.SelectedItem}"/>
</Border>
<Border Margin="5" Height="30%">
<DirectoryView Name="dv" CurrentDirectory="/" Margin="1"/>
</Border>
<Splitter/>
<ListBox Data="{TestList}" Margin="5"
ItemTemplate="#Tests.Interfaces.colorItem.crow"
Template="#Crow.Templates.ScrollingListBox.goml"
/>
</VerticalStack>
</HorizontalStack>
</Window>
|