]> O.S.I.I.S - jp/crow.git/commitdiff
improved test for spinner and focus
authorjpbruyere <jp.bruyere@hotmail.com>
Mon, 19 Oct 2015 14:58:44 +0000 (16:58 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Mon, 19 Oct 2015 14:58:44 +0000 (16:58 +0200)
Tests/GOLIBTests.cs
Tests/Interfaces/testSpinner.goml

index e84c18fcf82c6fe689bd2d8750bdae7a917a7712..2c1563ed4ba1ec86f364c118df990589d069b483 100644 (file)
@@ -93,6 +93,22 @@ namespace test
                public string update = "";\r
                #endregion\r
 \r
+               public int intValue = 25;\r
+\r
+               public int IntValue {\r
+                       get {\r
+                               return intValue;\r
+                       }\r
+                       set {\r
+                               intValue = value;\r
+                               NotifyValueChanged ("IntValue", intValue);\r
+                       }\r
+               }\r
+               void onSpinnerValueChange(object sender, ValueChangeEventArgs e){\r
+                       if (e.MemberName != "Value")\r
+                               return;\r
+                       intValue = Convert.ToInt32(e.NewValue);\r
+               }\r
                public List<String> TestList = new List<string>( new string[] \r
                        {\r
                                "string 1",\r
index 48791ba5e13da3436a1148311ffab4d624adb848..d80f5c294cc0af219129b5e44a78386ebfb75605 100755 (executable)
@@ -2,6 +2,10 @@
 <VerticalStack Name="TopContainer" Width="400" Height="-1"\r
        Margin="20" Background="DarkGray">\r
 \r
+       <HorizontalStack Fit="true">\r
+       <Spinner Value="{IntValue}" ValueChanged="onSpinnerValueChange"/>\r
        <Spinner Value="5"/>\r
        <Spinner Value="5"/>\r
+       <Button></Button>\r
+       </HorizontalStack>\r
 </VerticalStack>
\ No newline at end of file