Skip to content

Commit 831aef6

Browse files
committed
Update string reliance on WinUI NavigationView
1 parent 8ecc496 commit 831aef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Layout/ListDetailsView/ListDetailsView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ private void OnLoaded(object sender, RoutedEventArgs e)
199199
_frame.Navigating -= OnFrameNavigating;
200200
}
201201

202-
_navigationView = this.FindAscendants().FirstOrDefault(p => p.GetType().FullName == "Microsoft.UI.Xaml.Controls.NavigationView");
202+
_navigationView = this.FindAscendant<Microsoft.UI.Xaml.Controls.NavigationView>();
203203
_frame = this.FindAscendant<Frame>();
204204
if (_frame != null)
205205
{

0 commit comments

Comments
 (0)