From b39431e32fa06ccde6ee88aa560ea7f0ed02c519 Mon Sep 17 00:00:00 2001 From: Yoojun Zhou Date: Sun, 3 Nov 2024 17:29:46 +0800 Subject: [PATCH] Update ExpanderPage.xaml.cs --- .../ControlPages/ExpanderPage.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/ExpanderPage.xaml.cs b/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/ExpanderPage.xaml.cs index 627276cc..2c763fe4 100644 --- a/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/ExpanderPage.xaml.cs +++ b/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/ExpanderPage.xaml.cs @@ -43,7 +43,10 @@ private void ExpandDirectionComboBox_SelectionChanged(object sender, SelectionCh break; } - UpdateExampleCode(); + if (this.IsLoaded) + { + UpdateExampleCode(); + } } private void Page_Loaded(object sender, RoutedEventArgs e)