diff options
author | Bret Johnson <bret.johnson@microsoft.com> | 2018-05-31 21:45:53 +0300 |
---|---|---|
committer | Bret Johnson <bret.johnson@microsoft.com> | 2018-05-31 21:45:53 +0300 |
commit | 5a1be1b171402e198826adb8800742b33b90c705 (patch) | |
tree | 10fc0a0869a8b9b353bf7dd0a9f4aa170e9eb5ba | |
parent | cd022e582ada54440bee219cb38200946191fb64 (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.cs | 4 |
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)
|