aboutsummaryrefslogtreecommitdiffstatsci
path: root/Tests/Interfaces/DragAndDrop/0.crow
blob: 356fa49a7d7beb75353a044ec9d00f9ae05257a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0"?>
<HorizontalStack Background="DimGray" Margin="10" Width="90%" Height="90%" Spacing="100" Focusable="true">
	<Container Name="source" StartDrag="{Background=DimGray}" EndDrag="{Background=SeaGreen}" Focusable="true" Fit="true"
			Drop="{../target.Background=Green}"
			MouseEnter="{/txt.Foreground=Red}" MouseLeave="{/txt.Foreground=White}" MouseClick="{Background=SeaGreen}"
			AllowDrag="true" Width="200" Height="200" Background="SeaGreen">
		<VerticalStack Margin="50">
			<Label Name="txt" Text="Drag me" Foreground="Gray"/>
			<Label Text="Dragged" Visible="{../../IsDragged}" Foreground="Gray"/>
		</VerticalStack>
	</Container>
	<Container Name="target" DragEnter="{Background=SeaGreen}" DragLeave="{Background=DimGray}" Focusable="true" Fit="true"
			MouseEnter="{/txt.Foreground=Red}" MouseLeave="{/txt.Foreground=White}"
			AllowDrop="true"  Background="DimGray">
		<VerticalStack Margin="50">
			<Label Name="txt" Text="Drop here" Foreground="Gray"/>
			<Label Text="Dragged" Visible="{../../IsDragged}" Foreground="Gray"/>
		</VerticalStack>
	</Container>
</HorizontalStack>