aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/Experimental/toolbox.crow
blob: 2ab83d1b9e5d223e324071765a0f7b717a07cc63 (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
<DockWindow Height="Fit" Width="Fit">
	<Template>
		<Border Background="{./Background}" Margin="5" CornerRadius="0">
			<HorizontalStack>
				<Widget Width="12" Height="Stretched" Background="Onyx" Name="MoveHandle" Focusable="true" CornerRadius="5"/>
				<Container Name="Content" Width="Stretched"/>
			</HorizontalStack>
		</Border>
	</Template>
	<ListBox Data="{Commands}" Fit="true">
		<Template>
			<HorizontalStack Name="ItemsContainer" Spacing="5" />
		</Template>
		<ItemTemplate>
			<Button Command="{}" MinimumSize="1,1" Width="40" Height="40" Background="vgradient|0:DimGrey|1:Black" CornerRadius="0" >
				<Template>
					<Border Style="ButtonBorder" Width="Stretched" Height="Stretched" Margin="10" Background="{./Background}" CornerRadius="{../CornerRadius}">
						<Image Path="{./Icon}" Tooltip="{./Caption}" Scaled="true" KeepProportions="true" Margin="0"/>
					</Border>
				</Template>
			</Button>
		</ItemTemplate>
	</ListBox >
</DockWindow>