Height="{../../HeightPolicy}" Width="{../../WidthPolicy}"
ValueChanged="../../_scroller_ValueChanged">
<VerticalStack LayoutChanged="../../../_list_LayoutChanged"
- Height="-1" Width="{../../../WidthPolicy}" Name="List" Margin="0" VerticalAlignment="Top"/>
+ Height="Fit" Width="{../../../WidthPolicy}" Name="List" Margin="0" VerticalAlignment="Top"/>
</Scroller>
</Border>
\ No newline at end of file
<Label Text="{../../../Caption}"/>
<Border CornerRadius="5" BorderWidth="1" Foreground="Transparent" Height="12" Width="12"
MouseEnter="{Foreground=White}" MouseLeave="{Foreground=Transparent}">
- <Image Focusable="true" Name="Image" Margin="0" Width="0" Height="0" Path="#Crow.Images.Icons.exit2.svg"
+ <Image Focusable="true" Name="Image" Margin="0" Width="Stretched" Height="Stretched" Path="#Crow.Images.Icons.exit2.svg"
MouseClick="../../../../butCloseTabClick"/>
</Border>
</HorizontalStack>
<?xml version="1.0"?>
<Border BorderWidth="1" Foreground="White" CornerRadius="20" Height="{../HeightPolicy}" Width="{../WidthPolicy}">
<VerticalStack Height="{../../HeightPolicy}" Width="{../../WidthPolicy}">
- <Border Name="TitleBar" BorderWidth="1" Foreground="White" Width="{../../../WidthPolicy}" Height="-1"
+ <Border Name="TitleBar" BorderWidth="1" Foreground="White" Width="{../../../WidthPolicy}" Height="Fit"
Background="vgradient|0:0,1;0,5;1,0;0,5|1:0,0;0,1;0,3;0,9">
-<!-- Background="0,1;0,5;1,0;0,5"-->
- <HorizontalStack Name="hs" Margin="1" Spacing="1" Width="{../../../../WidthPolicy}" Height="-1" >
+ <HorizontalStack Name="hs" Margin="1" Spacing="1" Width="{../../../../WidthPolicy}" Height="Fit" >
<GraphicObject Width="5"/>
<Image Margin="1" Width="12" Height="12" Path="{../../../../../Icon}"/>
<Label Foreground="White" Width="{../../../../../WidthPolicy}" Margin="1" TextAlignment="Center" Text="{../../../../../Title}" />
<Border CornerRadius="6" BorderWidth="1" Foreground="Transparent" Height="12" Width="12"
MouseEnter="{Foreground=White}" MouseLeave="{Foreground=Transparent}">
- <Image Focusable="true" Name="Image" Margin="0" Width="0" Height="0" Path="#Crow.Images.Icons.exit2.svg"
+ <Image Focusable="true" Name="Image" Margin="0" Width="Stretched" Height="Stretched" Path="#Crow.Images.Icons.exit2.svg"
MouseClick="../../../../../../butQuitPress"/>
</Border>
<GraphicObject Width="5"/>
</HorizontalStack>
</Border>
- <Container Name="Content" Height="{../../../../HeightPolicy}" Width="{../../../../WidthPolicy}" Background="0,5;0,5;0,5;0,5"/>
+ <Container Name="Content" MinimumSize="50;50" Height="{../../../HeightPolicy}" Width="{../../../WidthPolicy}" Background="0,5;0,5;0,5;0,5"/>
</VerticalStack>
</Border>
\ No newline at end of file
int idx = 0;
string[] testFiles = {
+// "testTabView.crow",
+ "testCombobox.goml",
+ "testWindow.goml",
@"basicTests/5.crow",
"testColorList.crow",
@"basicTests/0.crow",
"test0.goml",
"test1.goml",
"0.crow",
- "testCombobox.goml",
"0.crow",
"testCheckbox.goml",
- "testWindow.goml",
"fps.goml",
- "testTabView.crow",
"testExpandable.goml",
"0.crow",
"testImage.crow",
<?xml version="1.0"?>
-<HorizontalStack Width="Stretched" Height="Stretched" Margin="5" Background="Mantis">
- <GraphicObject Background="Carmine" Width="40%" Height="20%"/>
- <GraphicObject Background="Carmine" Width="Stretched" Height="20%"/>
- <GraphicObject Background="Carmine" Width="40%" Height="20%"/>
+<HorizontalStack Width="Stretched" Height="Fit" Margin="5" Background="Mantis">
+ <GraphicObject Background="Carmine" Width="10%" Height="20"/>
+ <GraphicObject Background="Carmine" Width="Stretched" Height="20"/>
+ <GraphicObject Background="Carmine" Width="10%" Height="20"/>
+ <GraphicObject Background="Carmine" Width="10%" Height="20"/>
+ <GraphicObject Background="Carmine" Width="10%" Height="20"/>
+ <GraphicObject Background="Carmine" Width="10%" Height="20"/>
+ <GraphicObject Background="Carmine" Width="10%" Height="20"/>
</HorizontalStack>
<?xml version="1.0"?>
<VerticalStack Width="200">
- <ComboBox Width="0" Data="{TestList}" SelectedIndex="0"
+ <ComboBox Width="Stretched" Data="{TestList}" SelectedIndex="0"
ItemTemplate="#Tests.Interfaces.colorItem.crow"/>
</VerticalStack>
\ No newline at end of file
<CheckBox/>
<CheckBox/>
<CheckBox/>
-<!-- <Label Text="{fps}" HorizontalAlignment="Right" Foreground="Black" Background="Yellow"/>-->
</VerticalStack>
</TabItem>
- <TabItem Name="TabItem2" Caption="tab item 2" Width="0" Height="0" Margin="0" Background="Gray">
+ <TabItem Name="TabItem2" Caption="tab item 2" Width="Stretched" Height="Stretched" Margin="0" Background="Gray">
<VerticalStack Fit="true">
<RadioButton/>
<RadioButton/>
<RadioButton/>
<RadioButton/>
-<!-- <Label Text="{fps}" HorizontalAlignment="Left" Background="LimeGreen"/>-->
</VerticalStack>
</TabItem>
- <TabItem Name="TabItem2" Caption="tab item 3" Width="0" Height="0" Margin="0" Background="Gray">
- <Container Margin="5" CornerRadius="2" Width="0" Height="0">
- <TextBox Margin="5" Width="0" Height="0" Multiline="true" TextAlignment="TopLeft"/>
+ <TabItem Name="TabItem2" Caption="tab item 3" Width="Stretched" Height="Stretched" Margin="0" Background="Gray">
+ <Container Margin="5" CornerRadius="2" Width="Stretched" Height="Stretched">
+ <TextBox Margin="5" Width="Stretched" Height="Stretched" Multiline="true" TextAlignment="TopLeft"/>
</Container>
</TabItem>
- <TabItem Name="TabItem2" Caption="tab item 4" Width="0" Height="0" Margin="0" Background="Gray">
+ <TabItem Name="TabItem2" Caption="tab item 4" Width="Stretched" Height="Stretched" Margin="0" Background="Gray">
<TextBox/>
</TabItem>
</TabView>
<Button Background="vgradient|0:DimGray|1:Black" HorizontalAlignment="Right"
Caption="Add new tab" Width="Fit" Height="30" MouseClick="onAddTabButClick"/>
</VerticalStack>
- <TabView CacheEnabled="false" Width="200" Height="200" Orientation="Horizontal" Spacing="20" Margin="0">
- <TabItem
- Name="TabItem1" Caption="tab 1" Width="0" Height="0" Margin="0" Background="Gray">
- <VerticalStack Fit="true">
- <CheckBox/>
- <CheckBox/>
- <CheckBox/>
- <CheckBox/>
- <Label Text="{fps}" HorizontalAlignment="Right" Foreground="Black" Background="Yellow"/>
- </VerticalStack>
- </TabItem>
- <TabItem
- Name="TabItem2" Caption="tab 2" Width="0" Height="0" Margin="0" Background="Gray">
- <VerticalStack Fit="true">
- <RadioButton/>
- <RadioButton/>
- <RadioButton/>
- <RadioButton/>
- <Label Text="{fps}" HorizontalAlignment="Left" Background="LimeGreen"/>
- </VerticalStack>
- </TabItem>
- </TabView>
</HorizontalStack>
<Window Left="10" Top="10" Title="Test window"
Width="250" Height="550" >
<VerticalStack Name="contentVSStack" Margin="10" Spacing="10" Background="0,4;0,4;0,4;0,4">
- <Slider Name="slider" Height="12" Width="0" CornerRadius="3"/>
- <GroupBox Caption="test" Height="-1" Width="0" Margin="5">
- <VerticalStack Height="-1" Width="0" >
- <RadioButton Caption="Radio 1" Background="Red" Width="0"/>
+ <Slider Name="slider" Height="12" Width="Stretched" CornerRadius="3"/>
+ <GroupBox Caption="test" Height="Fit" Width="Stretched" Margin="5">
+ <VerticalStack Height="Fit" Width="Stretched" >
+ <RadioButton Caption="Radio 1" Background="Red" Width="Stretched"/>
<RadioButton Caption="Radio 2" IsChecked="true" />
<RadioButton Caption="Radio 3" />
- <RadioButton Caption="Radio 1" Background="SkyBlue" Width="0"/>
+ <RadioButton Caption="Radio 1" Background="SkyBlue" Width="Stretched"/>
</VerticalStack>
</GroupBox>
- <HorizontalStack Width="0" Height="-1" Margin="10" CornerRadius="5" Background="SkyBlue">
-<!-- <VerticalStack Height="-1" Width="-1" >
- <RadioButton Caption="Radio 2" IsChecked="true" />
- <RadioButton Caption="Radio 3" />
- </VerticalStack>
- <VerticalStack Height="-1" Width="-1" >
- <RadioButton Caption="Radio 2" IsChecked="true" />
- <RadioButton Caption="Radio 3" />
- </VerticalStack>-->
- <RadioButton Width="80" Height="-1" Caption="Radio 2" IsChecked="true" />
- <GraphicObject Width="0"/>
- <RadioButton Width="80" Height="-1" Caption="Radio 3" />
+ <HorizontalStack Width="Stretched" Height="Fit" Margin="10" CornerRadius="5" Background="SkyBlue">
+ <RadioButton Width="80" Height="Fit" Caption="Radio 2" IsChecked="true" />
+ <GraphicObject Width="Stretched"/>
+ <RadioButton Width="80" Height="Fit" Caption="Radio 3" />
</HorizontalStack>
-
- <HorizontalStack Width="0" Height="0" MinimumSize="10;10" Margin="10" CornerRadius="5"
+ <HorizontalStack Width="Stretched" Height="Stretched" MinimumSize="10;10" Margin="10" CornerRadius="5"
Background="vgradient|0:White|0,1:SteelBlue|0,9:SteelBlue|1:Transparent">
- <CheckBox Height="-1" Width="80"/>
- <GraphicObject Width="0"/>
- <CheckBox Height="-1" Width="80" IsChecked="true"/>
+ <CheckBox Height="Fit" Width="80"/>
+ <GraphicObject Width="Stretched"/>
+ <CheckBox Height="Fit" Width="80" IsChecked="true"/>
</HorizontalStack>
<Border Fit="true" CornerRadius="5" BorderWidth="1" >
<Container Name="MainGrp" Background="0,5;0,5;0,5;0,4" Width="120" Fit="true"
</VerticalStack>
</Container>
</Border>
-<!-- <Border Fit="true" CornerRadius="5" BorderWidth="1" >
- <Container Name="MainGrp" Background="0,5;0,5;0,5;0,4" Fit="true" Margin="10">
- <VerticalStack Fit="true" Spacing="10" >
- <HorizontalStack Fit="true">
- <Label Text="Update:" Width="50" TextAlignment="Right"/>
- <Label Text="{update}" Font="droid,12" Background="vgradient|0:AoEnglish|1:Black"/>
- </HorizontalStack>
- <HorizontalStack Fit="true">
- <Label Text="Layouting:" Width="50" TextAlignment="Right"/>
- <Label Text="{layouting}" Font="droid,12" Background="vgradient|0:AoEnglish|1:Black"/>
- </HorizontalStack>
- </VerticalStack>
- </Container>
- </Border>-->
<HorizontalStack Fit="true" Background="BlueCrayola" Margin="3">
<GraphicObject Margin="10" Background="LimeGreen" Width="5" Height="5"/>
<TextBox Font="droid, 16" Multiline="true" Text="this is a test\nmultiline" Margin="2"/>
<GraphicObject Margin="10" Background="LimeGreen" Width="5" Height="5"/>
</HorizontalStack>
-<!-- <Checkbox Height="-1" Width="-1" Background="Red" Margin="0" VerticalAlignment="Center" HorizontalAlignment="Right"/>-->
</VerticalStack>
-</Window>
-<!--</Group>-->
-<!-- <Label Text="{fps}" Background="DarkRed"/>
- <Label Text="{fpsMin}" />
- <Label Text="{fpsMax}" />-->
\ No newline at end of file
+</Window>
\ No newline at end of file
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue"/>
</VerticalStack>
- <VerticalStack Width="0" Height="-1" Background="DimGray" Margin="5">
+ <VerticalStack Width="0" Height="Fit" Background="DimGray" Margin="5">
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue" Width="0"/>
<TextRun Background="SkyBlue" Height="0"/>
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue"/>
</HorizontalStack>
- <HorizontalStack Width="0" Height="-1" Background="DimGray" Margin="5">
+ <HorizontalStack Width="0" Height="Fit" Background="DimGray" Margin="5">
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue"/>
</HorizontalStack>
- <HorizontalStack Width="0" Height="-1" Background="DimGray" Margin="5">
+ <HorizontalStack Width="0" Height="Fit" Background="DimGray" Margin="5">
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue"/>
</HorizontalStack>
- <HorizontalStack Width="0" Height="-1" Background="DimGray" Margin="5">
+ <HorizontalStack Width="0" Height="Fit" Background="DimGray" Margin="5">
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue" Width="0"/>
<TextRun Background="SkyBlue"/>
</HorizontalStack>
</VerticalStack>
- <VerticalStack Width="-1" Margin="5" Background="Gray">
- <VerticalStack Width="0" Height="-1" Background="DimGray" Margin="5">
+ <VerticalStack Width="Fit" Margin="5" Background="Gray">
+ <VerticalStack Width="0" Height="Fit" Background="DimGray" Margin="5">
<TextRun Background="SkyBlue" HorizontalAlignment="Left"/>
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue"/>
</VerticalStack>
- <VerticalStack Width="0" Height="-1" Background="DimGray" Margin="5">
+ <VerticalStack Width="0" Height="Fit" Background="DimGray" Margin="5">
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue" Width="0"/>
<TextRun Background="SkyBlue" Height="0"/>
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue"/>
</HorizontalStack>
- <HorizontalStack Width="0" Height="-1" Background="DimGray" Margin="5">
+ <HorizontalStack Width="0" Height="Fit" Background="DimGray" Margin="5">
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue"/>
<TextRun Background="SkyBlue"/>
<Image Margin="10" Background="vgradient|0:SkyBlue|1:White" Width="25" Height="50" Path="#Crow.image.crow0.svg" />
<Image Background="vgradient|0:SkyBlue|1:White" Width="50" Height="25" Path="#Crow.image.crow0.svg" />
<Image Margin="10" Background="vgradient|0:SkyBlue|1:White" Width="50" Height="25" Path="#Crow.image.crow0.svg" />
- <Image Background="vgradient|0:SkyBlue|1:White" Width="25" Height="-1" Path="#Crow.image.crow0.svg" />
- <Image Margin="10" Background="vgradient|0:SkyBlue|1:White" Width="25" Height="-1" Path="#Crow.image.crow0.svg" />
+ <Image Background="vgradient|0:SkyBlue|1:White" Width="25" Height="Fit" Path="#Crow.image.crow0.svg" />
+ <Image Margin="10" Background="vgradient|0:SkyBlue|1:White" Width="25" Height="Fit" Path="#Crow.image.crow0.svg" />
</HorizontalStack>
<Label Text="SCALED NOT PROPORTIONNAL" Background="hgradient|0:DimGray|1:DarkRed"/>
<HorizontalStack Fit="true" Background="hgradient|0:DarkRed|1:Transparent" >
<Image KeepProportions="false" Margin="10" Background="vgradient|0:SkyBlue|1:White" Width="25" Height="50" Path="#Crow.image.crow0.svg" />
<Image KeepProportions="false" Background="vgradient|0:SkyBlue|1:White" Width="50" Height="25" Path="#Crow.image.crow0.svg" />
<Image KeepProportions="false" Margin="10" Background="vgradient|0:SkyBlue|1:White" Width="50" Height="25" Path="#Crow.image.crow0.svg" />
- <Image KeepProportions="false" Background="vgradient|0:SkyBlue|1:White" Width="25" Height="-1" Path="#Crow.image.crow0.svg" />
- <Image KeepProportions="false" Margin="10" Background="vgradient|0:SkyBlue|1:White" Width="25" Height="-1" Path="#Crow.image.crow0.svg" />
+ <Image KeepProportions="false" Background="vgradient|0:SkyBlue|1:White" Width="25" Height="Fit" Path="#Crow.image.crow0.svg" />
+ <Image KeepProportions="false" Margin="10" Background="vgradient|0:SkyBlue|1:White" Width="25" Height="Fit" Path="#Crow.image.crow0.svg" />
</HorizontalStack>
<Label Text="UNSCALED" Background="hgradient|0:DimGray|1:DarkRed"/>
<HorizontalStack Fit="true" Background="hgradient|0:DarkRed|1:Transparent" >
<Image Scaled="false" Margin="10" Background="Blue" Width="25" Height="50" Path="#Crow.image.crow0.svg" />
<Image Scaled="false" Background="Blue" Width="50" Height="25" Path="#Crow.image.crow0.svg" />
<Image Scaled="false" Margin="10" Background="Blue" Width="50" Height="25" Path="#Crow.image.crow0.svg" />
- <Image Scaled="false" Background="Blue" Width="25" Height="-1" Path="#Crow.image.crow0.svg" />
- <Image Scaled="false" Margin="10" Background="Blue" Width="25" Height="-1" Path="#Crow.image.crow0.svg" />
+ <Image Scaled="false" Background="Blue" Width="25" Height="Fit" Path="#Crow.image.crow0.svg" />
+ <Image Scaled="false" Margin="10" Background="Blue" Width="25" Height="Fit" Path="#Crow.image.crow0.svg" />
</HorizontalStack>
<Label Text="SCALED PROPORTIONNAL" Background="hgradient|0:DimGray|1:DarkRed"/>
<HorizontalStack Fit="true" Background="hgradient|0:DarkRed|1:Transparent">
<Image Margin="10" Background="Blue" Width="25" Height="50" Path="#Crow.Images.Icons.tetra.png"/>
<Image Background="Blue" Width="50" Height="25" Path="#Crow.Images.Icons.tetra.png"/>
<Image Margin="10" Background="Blue" Width="50" Height="25" Path="#Crow.Images.Icons.tetra.png"/>
- <Image Background="Blue" Width="25" Height="-1" Path="#Crow.Images.Icons.tetra.png"/>
- <Image Margin="10" Background="Blue" Width="25" Height="-1" Path="#Crow.Images.Icons.tetra.png"/>
+ <Image Background="Blue" Width="25" Height="Fit" Path="#Crow.Images.Icons.tetra.png"/>
+ <Image Margin="10" Background="Blue" Width="25" Height="Fit" Path="#Crow.Images.Icons.tetra.png"/>
</HorizontalStack>
<Label Text="SCALED NOT PROPORTIONNAL" Background="hgradient|0:DimGray|1:DarkRed"/>
<HorizontalStack Fit="true" Background="hgradient|0:DarkRed|1:Transparent">
<Image KeepProportions="false" Margin="10" Background="Blue" Width="25" Height="50" Path="#Crow.Images.Icons.tetra.png"/>
<Image KeepProportions="false" Background="Blue" Width="50" Height="25" Path="#Crow.Images.Icons.tetra.png"/>
<Image KeepProportions="false" Margin="10" Background="Blue" Width="50" Height="25" Path="#Crow.Images.Icons.tetra.png"/>
- <Image KeepProportions="false" Background="Blue" Width="25" Height="-1" Path="#Crow.Images.Icons.tetra.png"/>
- <Image KeepProportions="false" Margin="10" Background="Blue" Width="25" Height="-1" Path="#Crow.Images.Icons.tetra.png"/>
+ <Image KeepProportions="false" Background="Blue" Width="25" Height="Fit" Path="#Crow.Images.Icons.tetra.png"/>
+ <Image KeepProportions="false" Margin="10" Background="Blue" Width="25" Height="Fit" Path="#Crow.Images.Icons.tetra.png"/>
</HorizontalStack>
<Label Text="UNSCALED" Background="hgradient|0:DimGray|1:DarkRed"/>
<HorizontalStack Fit="true" Background="hgradient|0:DarkRed|1:Transparent" >
<Image Scaled="false" Margin="10" Background="Blue" Width="25" Height="50" Path="#Crow.Images.Icons.tetra.png"/>
<Image Scaled="false" Background="Blue" Width="50" Height="25" Path="#Crow.Images.Icons.tetra.png"/>
<Image Scaled="false" Margin="10" Background="Blue" Width="50" Height="25" Path="#Crow.Images.Icons.tetra.png"/>
- <Image Scaled="false" Background="Blue" Width="25" Height="-1" Path="#Crow.Images.Icons.tetra.png"/>
- <Image Scaled="false" Margin="10" Background="Blue" Width="25" Height="-1" Path="#Crow.Images.Icons.tetra.png"/>
+ <Image Scaled="false" Background="Blue" Width="25" Height="Fit" Path="#Crow.Images.Icons.tetra.png"/>
+ <Image Scaled="false" Margin="10" Background="Blue" Width="25" Height="Fit" Path="#Crow.Images.Icons.tetra.png"/>
</HorizontalStack>
</VerticalStack>
\ No newline at end of file
<ScrollBar Orientation="Horizontal" Maximum="100" Value="50" Height="16" Width="150"/>
<Spinner Value="100"/>
</VerticalStack>
- <VerticalStack Width="150" Height="-1" Margin="2" Spacing="2">
+ <VerticalStack Width="150" Height="Fit" Margin="2" Spacing="2">
<TextRun Text="text run test" Width="0"/>
<Label Text="label test" Width="0"/>
<TextBox Text="text box test" Width="0"/>
<GroupBox Caption="Group box" Width="0">
<Label Text="border test" Margin="3"/>
</GroupBox>
- <Container Height="-1" Width="0" Background="DimGray" Margin="3">
+ <Container Height="Fit" Width="0" Background="DimGray" Margin="3">
<GraphicObject Width="20" Height="20" Background="LightGray"/>
</Container>
<ProgressBar Height="10" Width="0" Background="DimGray" Value="50" />
Group page = _list.Clone () as Group;
page.Name = "page" + pageNum;
- page.Background = Color.Green;
+ //page.Background = Color.Green;
//reset size to fit in the dir of the stacking
//because _list total size is forced to approx size