]> O.S.I.I.S - jp/crow.git/commitdiff
tests updates
authorjpbruyere <jp.bruyere@hotmail.com>
Thu, 4 Feb 2016 22:42:58 +0000 (23:42 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Thu, 4 Feb 2016 22:42:58 +0000 (23:42 +0100)
Templates/ItemTemplate.goml
Templates/ScrollBar.goml
Tests/GOLIBTests.cs
Tests/Interfaces/testColorList.crow
Tests/Interfaces/testWindow.goml

index a7104196fb28e9d975b676bc2c18726101d3875c..10f201bd68ebac8ee299e67a8d3d5c66b66cd23f 100755 (executable)
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 
-<Label Text="{}" Focusable="true" Fit="true" Margin="0"
+<Label Text="{}" Fit="true" Margin="0"
                MouseEnter="{Background=SteelBlue}"
                MouseLeave="{Background=Transparent}"
 />
index 15dd9b963d9f3868d525c62869f179bd7a2e856f..95271b5e7aa9c338b7887dd6a199c1ddb1024ecc 100755 (executable)
@@ -1,7 +1,8 @@
 <?xml version="1.0"?>
 <Border BorderWidth="1" Foreground="LightGray" Width="{../TemplatedWidth}" Height="{../TemplatedHeight}">
-       <GenericStack Orientation="{../../Orientation}" Width="{../../TemplatedWidth}" Height="{../../TemplatedHeight}">
-               <Button MouseRepeat="true" Width="12" Height="8" MouseClick="../../../onScrollBack"
+       <GenericStack Orientation="{../../Orientation}" Spacing="0"
+               Width="{../../TemplatedWidth}" Height="{../../TemplatedHeight}">
+               <Button MouseRepeat="true" Width="12" Height="12" MouseClick="../../../onScrollBack"
                        Template="#Crow.Templates.ArrowButTemplate.crow">
                        <Image Margin="1" Path="#Crow.Images.Icons.updown.svg" SvgSub="up"/>
                </Button>
@@ -9,7 +10,7 @@
                        Background="hgradient|0:DimGray|0,1:Gray|0,95:Gray|1:White"
                        Width="{../../../TemplatedWidth}" Height="{../../../TemplatedHeight}" Orientation="{../../../Orientation}"
                        ValueChanged="../../../onSliderValueChange"/>
-               <Button MouseRepeat="true" Width="12" Height="8" MouseClick="../../../onScrollForth"
+               <Button MouseRepeat="true" Width="12" Height="12" MouseClick="../../../onScrollForth"
                        Template="#Crow.Templates.ArrowButTemplate.crow">
                        <Image Margin="1" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/>
                </Button>
index 9ef7784a7c557aaa2a5611477720123a85c6b95b..2dd11f32602a9fec888de4e7675c9dd9d87f11b6 100644 (file)
@@ -132,9 +132,17 @@ namespace test
                                return;
                        intValue = Convert.ToInt32(e.NewValue);
                }
+               IList<Color> testList = null;
                public IList<Color> TestList {
-                       get { return Color.ColorDic; }
+                       set{
+                               testList = value;
+                               NotifyValueChanged ("TestList", testList);
+                       }
+                       get { return testList; }
                }
+               void OnClear (object sender, MouseButtonEventArgs e) => TestList = null;
+
+               void OnLoadList (object sender, MouseButtonEventArgs e) => TestList = Color.ColorDic.ToList();
 
                protected override void OnLoad (EventArgs e)
                {
@@ -190,6 +198,7 @@ namespace test
                {
                        Console.WriteLine ("button clicked:" + send.ToString());
                }
+
                [STAThread]
                static void Main ()
                {
index fe653dd4a45471a7bffef4788948887b073a9598..a38e899de482e854f0dda4fb4d24541bc6a38d27 100755 (executable)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <Border BorderWidth="2" Fit="true">
        <VerticalStack Fit="true" Margin="5">
-               <ListBox Data="{TestList}" Background="0,5;0,5;0,5;0,8"
+               <ListBox Data="{TestList}" Background="0,5;0,5;0,5;0,7"
                                         HorizontalAlignment="Center" Width="-1" Height="350" Margin="5"
                                         ItemTemplate="#Tests.Interfaces.colorItem.crow">
                        <Template>
index ca3467bf2bb9986a04bd32bcc5277fbcbc7f02df..e32e0826b3eba3da3e9f97d5705803143d03c0a3 100755 (executable)
@@ -3,12 +3,14 @@
                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="-1" Margin="5">
-                       <VerticalStack  Height="-1" Width="0" >
-                               <RadioButton  Caption="Radio 1" Background="Red" />
-                               <RadioButton  Caption="Radio 2" IsChecked="true" />
-                               <RadioButton  Caption="Radio 3" />
-                       </VerticalStack>
+               <GroupBox Caption="test"  Height="-1" Width="0" Margin="5">
+                       <GroupBox Caption="test2"  Height="-1" Width="0" Margin="5">
+                               <VerticalStack  Height="-1" Width="0" >
+                                       <RadioButton  Caption="Radio 1" Background="Red" Width="0"/>
+                                       <RadioButton  Caption="Radio 2" IsChecked="true" />
+                                       <RadioButton  Caption="Radio 3" />
+                               </VerticalStack>
+                       </GroupBox>
                </GroupBox>
                <HorizontalStack Width="0" Height="-1" Margin="10" CornerRadius="5" 
                                Background="vgradient|0:White|0,1:SteelBlue|0,9:SteelBlue|1:Transparent">
                        </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="RightCenter"/>
+                                                       <Label Text="{update}" Font="droid,12" Background="vgradient|0:AoEnglish|1:Black"/>
+                                               </HorizontalStack>
+                                               <HorizontalStack Fit="true">
+                                                       <Label Text="Layouting:" Width="50" TextAlignment="RightCenter"/>
+                                                       <Label Text="{layouting}" Font="droid,12" Background="vgradient|0:AoEnglish|1:Black"/>
+                                               </HorizontalStack>
+                                       </VerticalStack>                                
+                       </Container>
+               </Border>
 <!--           <Checkbox Height="-1" Width="-1" Background="Red" Margin="0" VerticalAlignment="Center" HorizontalAlignment="Right"/>-->
        </VerticalStack>
 </Window>