예제 #1
0
        private void SettingsFrame_Navigated(object sender, NavigationEventArgs e)
        {
            SettingsFrame.RemoveBackEntry();

            if (!(SettingsFrame.Content is FrameworkElement content))
            {
                return;
            }

            content.DataContext = _viewModel;
        }
예제 #2
0
        private void SettingsFrame_OnNavigated(object sender, NavigationEventArgs e)
        {
            SettingsFrame.RemoveBackEntry();

            var content = SettingsFrame.Content as FrameworkElement;

            if (content == null)
            {
                return;
            }

            content.DataContext = _viewModel;
        }