]> O.S.I.I.S - jp/crow.git/commitdiff
testRadioBut2
authorjpbruyere <jp.bruyere@hotmail.com>
Fri, 11 Dec 2015 09:32:04 +0000 (10:32 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Fri, 11 Dec 2015 09:32:04 +0000 (10:32 +0100)
Tests/GOLIBTests.cs
Tests/Interfaces/testRadioButton2.goml [new file with mode: 0755]
Tests/Tests.csproj

index 4ceb17e0a135d7e50ba54f899e47f9d2cb63cf5a..0b0fba69e206d54ab9a3bf2711a0b7b0086bebbf 100644 (file)
@@ -36,8 +36,9 @@ namespace test
                int frameCpt = 0;\r
                int idx = 0;\r
                string[] testFiles = {\r
-                       "testSpinner.goml",\r
-                       "test_Listbox.goml",\r
+//                     "testSpinner.goml",\r
+//                     "test_Listbox.goml",\r
+                       "testRadioButton2.goml",\r
                        "fps.goml",\r
                        "testCheckbox.goml",\r
                        "testExpandable.goml",\r
@@ -140,10 +141,10 @@ namespace test
                }\r
                protected override void OnKeyDown (KeyboardKeyEventArgs e)\r
                {\r
-                       if (FocusedWidget != null) {\r
-                               base.OnKeyDown (e);\r
-                               return;\r
-                       }\r
+//                     if (FocusedWidget != null) {\r
+//                             base.OnKeyDown (e);\r
+//                             return;\r
+//                     }\r
                        if (e.Key == Key.Escape) {\r
                                this.Quit ();\r
                                return;\r
diff --git a/Tests/Interfaces/testRadioButton2.goml b/Tests/Interfaces/testRadioButton2.goml
new file mode 100755 (executable)
index 0000000..e6a4380
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>\r
+<VerticalStack Width="200" Height="-1" Margin="20" Background="DimGray">\r
+       <RadioButton Caption="Radio1"/>\r
+       <RadioButton Caption="Radio2" IsChecked="true"/>\r
+       <RadioButton Caption="Radio3"/>\r
+       <RadioButton Caption="Radio4">\r
+               <Template>\r
+                       <HorizontalStack Spacing="1" Height="{../TemplatedHeight}" Width="{../TemplatedWidth}">\r
+                               <Image Margin="2" Width="14" Height="14" Path="{../../Image}" SvgSub="{../../SvgSub}"/>\r
+                               <Label Text="{../../Caption}" Height="{../../TemplatedHeight}" Width="{../../TemplatedWidth}"/>\r
+                       </HorizontalStack>\r
+               </Template>\r
+       </RadioButton>\r
+</VerticalStack>\r
+\r
index 9d3a3410a87d4b2b41df7e837a350d1eb9ec620d..e12e092ee86546d3c3367bdec0d43a4318b9b1f3 100644 (file)
     <None Include="Interfaces\testFileDialog.goml">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </None>
+    <None Include="Interfaces\testRadioButton2.goml">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </None>
   </ItemGroup>
   <ItemGroup>
     <Folder Include="Interfaces\" />