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)