From 44f0383b5dad1af1f839afd71a81604396d421b4 Mon Sep 17 00:00:00 2001 From: Yoojun Zhou Date: Fri, 1 Nov 2024 19:08:45 +0800 Subject: [PATCH] Example code for ContextMenu --- .../ControlPages/ContextMenuPage.xaml | 12 +- .../ControlPages/ContextMenuPage.xaml.cs | 131 +++++++++++++++++- 2 files changed, 136 insertions(+), 7 deletions(-) diff --git a/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/ContextMenuPage.xaml b/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/ContextMenuPage.xaml index e5e8b112..2c0032c5 100644 --- a/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/ContextMenuPage.xaml +++ b/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/ContextMenuPage.xaml @@ -11,7 +11,7 @@ mc:Ignorable="d"> - + - + - + - + - + - + diff --git a/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/ContextMenuPage.xaml.cs b/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/ContextMenuPage.xaml.cs index 6b57344d..35d7a96e 100644 --- a/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/ContextMenuPage.xaml.cs +++ b/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/ContextMenuPage.xaml.cs @@ -5,15 +5,144 @@ public partial class ContextMenuPage public ContextMenuPage() { InitializeComponent(); + UpdateExampleCode(); } #region Example Code public void UpdateExampleCode() { - + Example1.Xaml = Example1Xaml; + Example2.Xaml = Example2Xaml; + Example3.Xaml = Example3Xaml; + Example4.Xaml = Example4Xaml; + Example5.Xaml = Example5Xaml; + Example6.Xaml = Example6Xaml; } + public string Example1Xaml => $@" + +"; + + public string Example2Xaml => $@" + +"; + + public string Example3Xaml => $@" + +"; + + public string Example4Xaml => $@" + +"; + + public string Example5Xaml => $@" + +"; + + public string Example6Xaml => $@" + +"; + #endregion }