aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/ui/DockWindows/winToolbox.crow
blob: 615488e8a0f5d0ee5aaefcb9534f2d9201444fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0"?>
<DockWindow DataSource="{CurrentSolution}" Name="winToolbox" Caption="Toolbox" Width="60">
	<ListBox Margin="3" Data="{ToolboxItems}" SelectionBackground="SkyBlue">
		<Template>
			<Wrapper Name="ItemsContainer" Orientation="Vertical" Spacing="0"/>
		</Template>
		<ItemTemplate>
			<Container Fit="true" Focusable="true" Tooltip="{DisplayName}" Margin="2" AllowDrag="true"
				StartDrag="onStartDrag" EndDrag="onEndDrag" Drop="onDrop">
				<Border Foreground="Black" Background="DimGrey" Margin="0" BorderWidth="1"
					MouseEnter="{Foreground=White}"
					MouseLeave="{Foreground=Black}">
					<Image Path="{IconPath}" Margin="3"  Width="20" Height="20" />
				</Border>
			</Container>
		</ItemTemplate>
	</ListBox>
</DockWindow>