From ab1f543ae5a6f8e0336460282c44fe98e9825802 Mon Sep 17 00:00:00 2001 From: "kwan.nguyen" Date: Thu, 9 Jan 2025 21:00:19 +0700 Subject: [PATCH] fix promotion page navigation --- PCUT/PCUT/PCUT.csproj | 6 +++--- PCUT/PCUT/Pages/MainMenuPage.xaml.cs | 4 ++++ .../Pages/Promotion/{Promotion.xaml => PromotionPage.xaml} | 2 +- .../Promotion/{Promotion.xaml.cs => PromotionPage.xaml.cs} | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) rename PCUT/PCUT/Pages/Promotion/{Promotion.xaml => PromotionPage.xaml} (91%) rename PCUT/PCUT/Pages/Promotion/{Promotion.xaml.cs => PromotionPage.xaml.cs} (89%) diff --git a/PCUT/PCUT/PCUT.csproj b/PCUT/PCUT/PCUT.csproj index 6f34dc5..b91ef42 100644 --- a/PCUT/PCUT/PCUT.csproj +++ b/PCUT/PCUT/PCUT.csproj @@ -207,8 +207,8 @@ LogInformationPage.xaml - - Promotion.xaml + + PromotionPage.xaml UserGuidePage.xaml @@ -397,7 +397,7 @@ MSBuild:Compile Designer - + MSBuild:Compile Designer diff --git a/PCUT/PCUT/Pages/MainMenuPage.xaml.cs b/PCUT/PCUT/Pages/MainMenuPage.xaml.cs index 92698e4..d4b507f 100644 --- a/PCUT/PCUT/Pages/MainMenuPage.xaml.cs +++ b/PCUT/PCUT/Pages/MainMenuPage.xaml.cs @@ -13,6 +13,7 @@ using static Http.Core.Constants.HttpConstants; using Windows.Graphics.Display; using Http.Core.Contexts; using PCUT.Pages.UserGuide; +using PCUT.Pages.Promotion; // The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238 @@ -73,6 +74,9 @@ namespace PCUT.Pages case "UserGuide": NavigateContentFrame(); break; + case "Promotion": + NavigateContentFrame(); + break; case "AdminCenter": NavigateContentFrame(); break; diff --git a/PCUT/PCUT/Pages/Promotion/Promotion.xaml b/PCUT/PCUT/Pages/Promotion/PromotionPage.xaml similarity index 91% rename from PCUT/PCUT/Pages/Promotion/Promotion.xaml rename to PCUT/PCUT/Pages/Promotion/PromotionPage.xaml index cdadb52..86b0b05 100644 --- a/PCUT/PCUT/Pages/Promotion/Promotion.xaml +++ b/PCUT/PCUT/Pages/Promotion/PromotionPage.xaml @@ -1,5 +1,5 @@  /// An empty page that can be used on its own or navigated to within a Frame. /// - public sealed partial class Promotion : Page + public sealed partial class PromotionPage : Page { - public Promotion() + public PromotionPage() { this.InitializeComponent(); }