From 7e8c34fc924581a8598dc1e8476c5ac0fe6b50fe Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 24 Jan 2023 19:06:31 +0200 Subject: [PATCH] Use GetTopLevel method --- samples/ControlCatalog/MainView.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/ControlCatalog/MainView.xaml.cs b/samples/ControlCatalog/MainView.xaml.cs index 4b2f9bb7c3..a9bf150ff9 100644 --- a/samples/ControlCatalog/MainView.xaml.cs +++ b/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; } };