From efc46b59625269b92aa7f82c976c290f29264806 Mon Sep 17 00:00:00 2001 From: Yoojun Zhou Date: Wed, 20 Nov 2024 17:03:46 +0800 Subject: [PATCH] Example code for Menu --- .../ControlPages/MenuPage.xaml | 6 +- .../ControlPages/MenuPage.xaml.cs | 92 ++++++++++++++++++- 2 files changed, 94 insertions(+), 4 deletions(-) diff --git a/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/MenuPage.xaml b/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/MenuPage.xaml index be15b098..b2dfc1d8 100644 --- a/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/MenuPage.xaml +++ b/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/MenuPage.xaml @@ -9,7 +9,7 @@ xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern" mc:Ignorable="d"> - + @@ -30,7 +30,7 @@ - + @@ -51,7 +51,7 @@ - + diff --git a/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/MenuPage.xaml.cs b/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/MenuPage.xaml.cs index 204b8d2f..4ef831a9 100644 --- a/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/MenuPage.xaml.cs +++ b/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/MenuPage.xaml.cs @@ -23,16 +23,106 @@ public partial class MenuPage public MenuPage() { InitializeComponent(); + UpdateExampleCode(); } #region Example Code public void UpdateExampleCode() { - + Example1.Xaml = Example1Xaml; + Example2.Xaml = Example2Xaml; + Example3.Xaml = Example3Xaml; } #endregion + public string Example1Xaml => $@" + + + + + + + + + + + + + + + + + + + +"; + + public string Example2Xaml => $@" + + + + + + + + + + + + + + + + + + + +"; + + public string Example3Xaml => $@" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +"; } }