]> O.S.I.I.S - jp/crow.git/commitdiff
update tests
authorjpbruyere <jp.bruyere@hotmail.com>
Thu, 14 Apr 2016 10:42:53 +0000 (12:42 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Thu, 14 Apr 2016 10:47:15 +0000 (12:47 +0200)
12 files changed:
Templates/ListBox.goml
Templates/TabItem.crow
Templates/Window.goml
Tests/GOLIBTestsOTK.cs
Tests/Interfaces/basicTests/5.crow
Tests/Interfaces/testCombobox.goml
Tests/Interfaces/testTabView.crow
Tests/Interfaces/testWindow.goml
UnitTest/Interfaces/3.crow
UnitTest/Interfaces/4.crow
UnitTest/Interfaces/5.crow
src/GraphicObjects/ListBox.cs

index 72bd8e2ca4f55652864a647f49ca689118f01638..8a8ec0d77b05154673df7de2be593f4a709141a9 100755 (executable)
@@ -4,6 +4,6 @@
                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
index c269bbe0589e9cb1f977db597d1fe0e3c38fb3f9..654b42c3b1d950ec0597cbedcb28299f4f863aad 100644 (file)
@@ -12,7 +12,7 @@
                <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>
index 1aa20a844d9a85c483acc1d2ea3fb8fa1dc89c7e..6de6638394968789ec77e10ea1031f0a5b4b3cd4 100755 (executable)
@@ -1,21 +1,20 @@
 <?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
index 9d3aa6f92b26c049c849ca3fa9da6e66fc9e6c05..4bb7aa94fb49217c0e692a4d9aaba979e5f790d0 100644 (file)
@@ -30,6 +30,9 @@ namespace testOTK
                int idx = 0;
 
                string[] testFiles = {
+//                     "testTabView.crow",
+                       "testCombobox.goml",
+                       "testWindow.goml",
                        @"basicTests/5.crow",
                        "testColorList.crow",
                        @"basicTests/0.crow",
@@ -39,12 +42,9 @@ namespace testOTK
                        "test0.goml",
                        "test1.goml",
                        "0.crow",
-                       "testCombobox.goml",
                        "0.crow",
                        "testCheckbox.goml",
-                       "testWindow.goml",
                        "fps.goml",
-                       "testTabView.crow",
                        "testExpandable.goml",
                        "0.crow",
                        "testImage.crow",
index 40abe0f0344b289d71cfc5a14973e02992bf2ac6..4922474a6e1723e99225456f00833971af20a2f4 100755 (executable)
@@ -1,6 +1,10 @@
 <?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>
index 5d84ca3adbdb9db2d4ad8e4d41d0968d1e102492..a87b10f38453149a97f276f29ac2fc7154dcc5e0 100755 (executable)
@@ -1,5 +1,5 @@
 <?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
index 14c407ce3899fd8aaca83a57dcc336137f2c96b3..27c221f4d1200956766696c8d17f53e130aa585d 100644 (file)
@@ -9,51 +9,27 @@
                                        <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>
 
index 248f46767ad6cf3b049840b1853f5c6f969d1cb0..fd24b50fce0592df82470e7a737aa10d70dda4f6 100755 (executable)
@@ -2,34 +2,25 @@
 <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
index 7dce3c8892d14d0daa7f0bcdd35dc48491f9a90d..0495dcbb2a2c730b6d2587d321baf6f5126eb97f 100755 (executable)
@@ -6,7 +6,7 @@
                        <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"/>
@@ -16,7 +16,7 @@
                        <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"/>
@@ -70,7 +70,7 @@
                        <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"/>
index 3b6efa022de4f6d2980825be12cf9bd539a9886d..6546a9a35636e414205739083ade7540c3feda59 100755 (executable)
@@ -10,8 +10,8 @@
                <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" >
@@ -23,8 +23,8 @@
                <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" >
@@ -36,8 +36,8 @@
                <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">
@@ -49,8 +49,8 @@
                <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">             
@@ -62,8 +62,8 @@
                <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" >
@@ -75,7 +75,7 @@
                <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
index a4d950bcfe9099c56eec29f111078432e3be333d..b9b8ee29381127f7da8e9ec14dfe5f936dd5a989 100755 (executable)
@@ -28,7 +28,7 @@
                <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"/>
@@ -48,7 +48,7 @@
                <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" />
index 434fbcfcc7b8cbb459ebfece1a3fd4455732a1a4..5487124142c2be4357528d8ff6ffdc4fb8a644f1 100644 (file)
@@ -148,7 +148,7 @@ namespace Crow
                                
                                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