aboutsummaryrefslogtreecommitdiffstatsci
path: root/Tests/Interfaces/DragAndDrop/0.crow
blob: c36f840d2f523d5d0752b4446192c0222f2cc9f6 (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="Onyx" Margin="10" Width="90%" Height="90%" Spacing="100" Focusable="true">
	<Container Name="source" StartDrag="{Background=Jet}" EndDrag="{Background=Mantis}" Focusable="true" Fit="true"
			Drop="{../target.Background=Green}"
			MouseEnter="{/txt.Foreground=Red}" MouseLeave="{/txt.Foreground=White}" MouseClick="{Background=Mantis}"
			AllowDrag="true" Width="200" Height="200" Background="Mantis">
		<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=Mantis}" DragLeave="{Background=Jet}" Focusable="true" Fit="true"
			MouseEnter="{/txt.Foreground=Red}" MouseLeave="{/txt.Foreground=White}"
			AllowDrop="true"  Background="Jet">
		<VerticalStack Margin="50">
			<Label Name="txt" Text="Drop here" Foreground="Gray"/>
			<Label Text="Dragged" Visible="{../../IsDragged}" Foreground="Gray"/>
		</VerticalStack>
	</Container>
</HorizontalStack>