Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBret Johnson <bret.johnson@microsoft.com>2018-05-31 21:45:53 +0300
committerBret Johnson <bret.johnson@microsoft.com>2018-05-31 21:45:53 +0300
commit5a1be1b171402e198826adb8800742b33b90c705 (patch)
tree10fc0a0869a8b9b353bf7dd0a9f4aa170e9eb5ba
parentcd022e582ada54440bee219cb38200946191fb64 (diff)
Added an accessor method to get the native ContextMenu
The Designer code uses this to theme the WPF menu.
-rw-r--r--Xwt.WPF/Xwt.WPFBackend/MenuBackend.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Xwt.WPF/Xwt.WPFBackend/MenuBackend.cs b/Xwt.WPF/Xwt.WPFBackend/MenuBackend.cs
index ee23f156..ff75a255 100644
--- a/Xwt.WPF/Xwt.WPFBackend/MenuBackend.cs
+++ b/Xwt.WPF/Xwt.WPFBackend/MenuBackend.cs
@@ -1,4 +1,4 @@
-//
+//
// MenuBackend.cs
//
// Author:
@@ -64,6 +64,8 @@ namespace Xwt.WPFBackend
set;
}
+ public ContextMenu NativeMenu => menu;
+
public virtual object Font {
get {
if (customFont == null)