private void SettingsFrame_Navigated(object sender, NavigationEventArgs e) { SettingsFrame.RemoveBackEntry(); if (!(SettingsFrame.Content is FrameworkElement content)) { return; } content.DataContext = _viewModel; }
private void SettingsFrame_OnNavigated(object sender, NavigationEventArgs e) { SettingsFrame.RemoveBackEntry(); var content = SettingsFrame.Content as FrameworkElement; if (content == null) { return; } content.DataContext = _viewModel; }