aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/DragAndDrop/0.crow
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2019-08-03 19:49:15 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2019-08-03 19:49:15 +0200
commite6030fa04a8de3fdae1dc19d081bf5feb3d3d73c (patch)
tree89f392cd974d1109a203ade305da467bd378ee48 /Samples/common/ui/Interfaces/DragAndDrop/0.crow
parentcad504c62d45952b4651603579f34df0d230841e (diff)
sample directory
Diffstat (limited to 'Samples/common/ui/Interfaces/DragAndDrop/0.crow')
-rwxr-xr-xSamples/common/ui/Interfaces/DragAndDrop/0.crow20
1 files changed, 20 insertions, 0 deletions
diff --git a/Samples/common/ui/Interfaces/DragAndDrop/0.crow b/Samples/common/ui/Interfaces/DragAndDrop/0.crow
new file mode 100755
index 00000000..ca1a7bb5
--- /dev/null
+++ b/Samples/common/ui/Interfaces/DragAndDrop/0.crow
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<HorizontalStack Background="DimGrey" Margin="10" Width="90%" Height="90%" Spacing="100" Focusable="true">
+ <Container Name="source" StartDrag="{Background=DimGrey}" 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="Grey"/>
+ <Label Text="Dragged" Visible="{../../IsDragged}" Foreground="Grey"/>
+ </VerticalStack>
+ </Container>
+ <Container Name="target" DragEnter="{Background=SeaGreen}" DragLeave="{Background=DimGrey}" Focusable="true" Fit="true"
+ MouseEnter="{/txt.Foreground=Red}" MouseLeave="{/txt.Foreground=White}"
+ AllowDrop="true" Background="DimGrey">
+ <VerticalStack Margin="50">
+ <Label Name="txt" Text="Drop here" Foreground="Grey"/>
+ <Label Text="Dragged" Visible="{../../IsDragged}" Foreground="Grey"/>
+ </VerticalStack>
+ </Container>
+</HorizontalStack> \ No newline at end of file