aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/Stack
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-07-12 08:45:51 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-07-12 08:45:51 +0200
commit5c91d515f8e05171ff94323c49831f080a11adec (patch)
tree524bdc58416c40c4bf007988dade3b051010771a /Samples/common/ui/Interfaces/Stack
parent5c30903a5f07342b1c2741240ff8dd173c1c641f (diff)
replace FastEnum with Enums.NET for flags handling, Bubbling event as Flag, requiredLayouting, MAXLAYOUTINGTRY=>30
Diffstat (limited to 'Samples/common/ui/Interfaces/Stack')
-rw-r--r--Samples/common/ui/Interfaces/Stack/StretchedInFit1.crow26
-rw-r--r--Samples/common/ui/Interfaces/Stack/StretchedInFit3.1.crow15
-rw-r--r--Samples/common/ui/Interfaces/Stack/StretchedInFit3.2.crow7
-rw-r--r--Samples/common/ui/Interfaces/Stack/StretchedInFit3.3.crow17
-rw-r--r--Samples/common/ui/Interfaces/Stack/StretchedInFit3.4.crow4
-rw-r--r--Samples/common/ui/Interfaces/Stack/StretchedInFit3.5.crow17
-rw-r--r--Samples/common/ui/Interfaces/Stack/StretchedInFit3.crow8
-rw-r--r--Samples/common/ui/Interfaces/Stack/StretchedInFit5.crow8
8 files changed, 95 insertions, 7 deletions
diff --git a/Samples/common/ui/Interfaces/Stack/StretchedInFit1.crow b/Samples/common/ui/Interfaces/Stack/StretchedInFit1.crow
new file mode 100644
index 00000000..fc31fe00
--- /dev/null
+++ b/Samples/common/ui/Interfaces/Stack/StretchedInFit1.crow
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<VerticalStack Background="DimGrey" Margin="1" Width="Fit" Height="Fit">
+<VerticalStack Background="DimGrey" Margin="1" Width="Stretched" Height="Fit">
+<VerticalStack Background="DimGrey" Margin="1" Width="Stretched" Height="Fit">
+<VerticalStack Background="DimGrey" Margin="1" Width="Stretched" Height="Fit">
+ <Label Text="this " Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="thismlkjqsdfmsmlfkj " Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+ <Label Text="this is a test" Margin="0" Width="Stretched" Height="Fit" Background="SeaGreen"/>
+</VerticalStack>
+</VerticalStack>
+</VerticalStack>
+</VerticalStack> \ No newline at end of file
diff --git a/Samples/common/ui/Interfaces/Stack/StretchedInFit3.1.crow b/Samples/common/ui/Interfaces/Stack/StretchedInFit3.1.crow
new file mode 100644
index 00000000..586c36f1
--- /dev/null
+++ b/Samples/common/ui/Interfaces/Stack/StretchedInFit3.1.crow
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<VerticalStack Height="Fit" Width="Fit" Margin="10" Background="Onyx">
+ <HorizontalStack Width="Stretched">
+ <Label Text="th" Width="Stretched" Background="Grey"/>
+ <Label Text="this is a fit label" Width="Fit" Background="Teal"/>
+ </HorizontalStack>
+ <HorizontalStack Width="Stretched">
+ <Label Text="this is a stretchedlkqsdflkj" Width="Stretched" Background="Grey"/>
+ <Label Text="this" Width="Fit" Background="Teal"/>
+ </HorizontalStack>
+ <HorizontalStack Width="Stretched">
+ <Label Text="this is a stretched label" Width="Stretched" Background="Grey"/>
+ <Label Text="th" Width="Fit" Background="Teal"/>
+ </HorizontalStack>
+</VerticalStack>
diff --git a/Samples/common/ui/Interfaces/Stack/StretchedInFit3.2.crow b/Samples/common/ui/Interfaces/Stack/StretchedInFit3.2.crow
new file mode 100644
index 00000000..e08b09be
--- /dev/null
+++ b/Samples/common/ui/Interfaces/Stack/StretchedInFit3.2.crow
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<Container Height="Fit" Width="Fit" Margin="1" Background="CornflowerBlue">
+ <VerticalStack Height="Stretched" >
+ <Label Text="this is a stretched label" Width="Stretched" Height="Stretched"/>
+ <Label Text="this is a fit label" Width="Stretched" Height="Fit"/>
+ </VerticalStack>
+</Container>
diff --git a/Samples/common/ui/Interfaces/Stack/StretchedInFit3.3.crow b/Samples/common/ui/Interfaces/Stack/StretchedInFit3.3.crow
new file mode 100644
index 00000000..3643b13e
--- /dev/null
+++ b/Samples/common/ui/Interfaces/Stack/StretchedInFit3.3.crow
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<Container Width="Stretched">
+<VerticalStack Height="Fit" Width="Stretched" Margin="5" Background="Onyx">
+ <HorizontalStack Width="Fit" >
+ <Label Text="thed label" Width="Stretched" Background="Grey"/>
+ <Label Text="this label" Width="Fit" Background="Teal"/>
+ </HorizontalStack>
+ <HorizontalStack Width="Stretched">
+ <Label Text="this is a stretched label" Width="Stretched" Background="Grey"/>
+ <Label Text="this is a fit label" Width="Fit" Background="Teal"/>
+ </HorizontalStack>
+ <HorizontalStack Width="Stretched" >
+ <Label Text="this is a stret" Width="Stretched" Background="Grey"/>
+ <Label Text="thi" Width="Fit" Background="Teal"/>
+ </HorizontalStack>
+</VerticalStack>
+</Container>
diff --git a/Samples/common/ui/Interfaces/Stack/StretchedInFit3.4.crow b/Samples/common/ui/Interfaces/Stack/StretchedInFit3.4.crow
new file mode 100644
index 00000000..31791555
--- /dev/null
+++ b/Samples/common/ui/Interfaces/Stack/StretchedInFit3.4.crow
@@ -0,0 +1,4 @@
+<HorizontalStack Height="Fit" Width="Fit" Background="DarkSlateBlue" Margin="10">
+ <Label Name="lab" Text="this is a long stretched label" Width="Stretched" Background="Grey"/>
+ <Label Text="label" Width="Fit" Background="Teal"/>
+</HorizontalStack>
diff --git a/Samples/common/ui/Interfaces/Stack/StretchedInFit3.5.crow b/Samples/common/ui/Interfaces/Stack/StretchedInFit3.5.crow
new file mode 100644
index 00000000..b7fe4fa5
--- /dev/null
+++ b/Samples/common/ui/Interfaces/Stack/StretchedInFit3.5.crow
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<Container Width="Stretched">
+<VerticalStack Height="Fit" Width="Fit" Margin="5" Background="Onyx">
+ <HorizontalStack Width="Stretched" >
+ <Label Text="stretched-end" Width="Stretched" Background="Grey"/>
+ <Label Text="fit" Width="Fit" Background="Teal"/>
+ </HorizontalStack>
+ <HorizontalStack Width="Stretched">
+ <Label Text="stretched labelsdqfqsfdqsdfqsdfqsdfdsqfqsdfqsdfqsdfdqsfdqsfdqsfdqsfdqsfqsdfdqsfdqsfdqsfdqsfdqsfqsdf" Width="Stretched" Background="Grey"/>
+ <Label Text="fit" Width="Fit" Background="Teal"/>
+ </HorizontalStack>
+ <HorizontalStack Width="Stretched" >
+ <Label Text="stretched-end" Width="Stretched" Background="Grey"/>
+ <Label Text="fit" Width="Fit" Background="Teal"/>
+ </HorizontalStack>
+</VerticalStack>
+</Container>
diff --git a/Samples/common/ui/Interfaces/Stack/StretchedInFit3.crow b/Samples/common/ui/Interfaces/Stack/StretchedInFit3.crow
index 84c057ff..b9516942 100644
--- a/Samples/common/ui/Interfaces/Stack/StretchedInFit3.crow
+++ b/Samples/common/ui/Interfaces/Stack/StretchedInFit3.crow
@@ -4,10 +4,10 @@
<VerticalStack Width="Stretched" Margin="10" Background="FireBrick">
<VerticalStack Width="Stretched" Margin="10" Background="Teal">
<VerticalStack Width="Stretched" Margin="10" Background="CornflowerBlue">
- <Label Text="{./Caption}" Width="Stretched"/>
- <Label Text="{./Caption}" Width="Stretched"/>
- <Label Text="{./Caption}" Width="Stretched"/>
- <Label Text="{./Caption}" Width="Stretched"/>
+ <Label Text="label" Width="Stretched"/>
+ <Label Text="a bit longer" Width="Stretched"/>
+ <Label Text="cow" Width="Stretched"/>
+ <Label Text="horse" Width="Stretched"/>
</VerticalStack>
</VerticalStack>
</VerticalStack>
diff --git a/Samples/common/ui/Interfaces/Stack/StretchedInFit5.crow b/Samples/common/ui/Interfaces/Stack/StretchedInFit5.crow
index 68078f98..0036d272 100644
--- a/Samples/common/ui/Interfaces/Stack/StretchedInFit5.crow
+++ b/Samples/common/ui/Interfaces/Stack/StretchedInFit5.crow
@@ -1,7 +1,9 @@
<?xml version="1.0"?>
-<VerticalStack Background="DimGrey" Margin="10" Width="Fit" Height="Fit" >
- <CheckBox Name="cb"/>
- <CheckBox Name="cb2"/>
+<VerticalStack Background="DimGrey" Margin="10" Width="Fit" Height="Fit"
+ MouseEnter="{Background=Blue}"
+ MouseLeave="{Background=DimGrey}" >
+ <CheckBox Name="cb" MouseEnter="{Background=DarkRed}" MouseLeave="{Background=Transparent}"/>
+ <CheckBox Name="cb2" MouseEnter="{Background=DarkRed}" MouseLeave="{Background=Transparent}"/>
<Container Visible="{²../cb.IsChecked}" Width="Stretched" Margin="10" Background="RoyalBlue">
<VerticalStack Margin="5" Background="Yellow">
<VerticalStack Margin="5" Background="Teal">