Skip to content

Commit

Permalink
Fix Kinnara#199: InvalidOperationException in SampleApp, Threading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed Nov 16, 2020
1 parent 0407148 commit 7ad6fb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ModernWpf.SampleApp/Navigation/NavigationRootPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@
Header="Force GC"
Click="ForceGC" />
<MenuItem
x:Name="NewWindowMenuItem"
Header="New window"
Visibility="Collapsed"
Click="NewWindow" />
</MenuItem>
</Menu>
Expand Down
1 change: 1 addition & 0 deletions ModernWpf.SampleApp/Navigation/NavigationRootPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public NavigationRootPage()
if (App.IsMultiThreaded)
{
PresetsMenu.Visibility = Visibility.Collapsed;
NewWindowMenuItem.Visibility = Visibility.Visible;
}

Loaded += delegate
Expand Down

0 comments on commit 7ad6fb0

Please sign in to comment.