Browse Source

Use GetTopLevel method

pull/10065/head
daniel 4 years ago
parent
commit
7e8c34fc92
  1. 2
      samples/ControlCatalog/MainView.xaml.cs

2
samples/ControlCatalog/MainView.xaml.cs

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

Loading…
Cancel
Save