Browse Source

Use GetTopLevel method

daniel 2 years ago
parent
commit
7e8c34fc92
1 changed files with 1 additions and 1 deletions
  1. 1 1
      samples/ControlCatalog/MainView.xaml.cs

+ 1 - 1
samples/ControlCatalog/MainView.xaml.cs

@@ -60,7 +60,7 @@ namespace ControlCatalog
             {
                 if (flowDirections.SelectedItem is FlowDirection flowDirection)
                 {
-                    ((TopLevel)this.VisualRoot!).FlowDirection = flowDirection;
+                    TopLevel.GetTopLevel(this).FlowDirection = flowDirection;
                 }
             };