From c3a70c3d3689d91b10114f73ff4114a12fadd17b Mon Sep 17 00:00:00 2001 From: ermau Date: Tue, 3 Apr 2012 10:50:27 -0400 Subject: [PATCH] [WPF] Enable checking on radio/checkbox menu items --- Xwt.WPF/Xwt.WPFBackend/CheckboxMenuItemBackend.cs | 4 ++++ Xwt.WPF/Xwt.WPFBackend/RadioButtonMenuItemBackend.cs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Xwt.WPF/Xwt.WPFBackend/CheckboxMenuItemBackend.cs b/Xwt.WPF/Xwt.WPFBackend/CheckboxMenuItemBackend.cs index a5a3e8de..6eb9463c 100644 --- a/Xwt.WPF/Xwt.WPFBackend/CheckboxMenuItemBackend.cs +++ b/Xwt.WPF/Xwt.WPFBackend/CheckboxMenuItemBackend.cs @@ -31,5 +31,9 @@ namespace Xwt.WPFBackend public class CheckboxMenuItemBackend : MenuItemBackend, ICheckBoxMenuItemBackend { + public CheckboxMenuItemBackend() + { + MenuItem.IsCheckable = true; + } } } \ No newline at end of file diff --git a/Xwt.WPF/Xwt.WPFBackend/RadioButtonMenuItemBackend.cs b/Xwt.WPF/Xwt.WPFBackend/RadioButtonMenuItemBackend.cs index 0700f313..3301eca5 100644 --- a/Xwt.WPF/Xwt.WPFBackend/RadioButtonMenuItemBackend.cs +++ b/Xwt.WPF/Xwt.WPFBackend/RadioButtonMenuItemBackend.cs @@ -31,5 +31,9 @@ namespace Xwt.WPFBackend public class RadioButtonMenuItemBackend : MenuItemBackend, IRadioButtonMenuItemBackend { + public RadioButtonMenuItemBackend() + { + MenuItem.IsCheckable = true; + } } }