diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-05-05 16:38:20 +0200 |
|---|---|---|
| committer | j-p <jp_bruyere@hotmail.com> | 2020-05-10 00:50:02 +0200 |
| commit | b1ccb02be5d186e4a8b1c6bec9284183ac352f06 (patch) | |
| tree | 86ecd595df0a37605ff24dbd2c4a7adebbf9b207 /Samples | |
| parent | f9b4b317e677187d49ac706aa0cc12571849d660 (diff) | |
try force measure of stretched children from stack having Fit measure
Diffstat (limited to 'Samples')
| -rw-r--r-- | Samples/BasicTests/BasicTests.cs | 3 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/Stack/StretchedInFit.crow | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Samples/BasicTests/BasicTests.cs b/Samples/BasicTests/BasicTests.cs index 90917302..4e89ca79 100644 --- a/Samples/BasicTests/BasicTests.cs +++ b/Samples/BasicTests/BasicTests.cs @@ -33,7 +33,8 @@ namespace tests //testFiles = new string [] { @"Interfaces/Divers/welcome.crow" }; //testFiles = new string [] { @"Interfaces/TemplatedGroup/3.crow" }; //testFiles = new string [] { @"Interfaces/Divers/testShape.crow" }; - testFiles = new string [] { @"Interfaces/TemplatedControl/testEnumSelector.crow" }; + //testFiles = new string [] { @"Interfaces/TemplatedControl/testEnumSelector.crow" }; + testFiles = new string [] { @"Interfaces/Stack/StretchedInFit.crow" }; //testFiles = new string [] { @"Interfaces/Divers/colorPicker2.crow" }; testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/GraphicObject", "*.crow")).ToArray (); testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Container", "*.crow")).ToArray (); diff --git a/Samples/common/ui/Interfaces/Stack/StretchedInFit.crow b/Samples/common/ui/Interfaces/Stack/StretchedInFit.crow new file mode 100644 index 00000000..42c30647 --- /dev/null +++ b/Samples/common/ui/Interfaces/Stack/StretchedInFit.crow @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<VerticalStack Background="DimGrey" Margin="1" Width="Fit" Height="Fit"> + <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" MinimumSize="5,5"/> +</VerticalStack>
\ No newline at end of file |