Browse Source

Apply FD on MainWindow instead MainView in ControlCatalog

daniel 2 years ago
parent
commit
7fd6d43e3f
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)
                 {
-                    this.FlowDirection = flowDirection;
+                    ((TopLevel)this.VisualRoot!).FlowDirection = flowDirection;
                 }
             };