private void OnNavigationChanged(object sender, HumanFactorNavigationChangedArgs e) { if (!PageViewModels.Contains(e.ViewModel)) { PageViewModels.Add(e.ViewModel); } CurrentPageViewModel = PageViewModels .FirstOrDefault(vm => vm == e.ViewModel); }
public void InvokeNavigationChanged(HumanFactorNavigationChangedArgs e) { NavigationChanged?.Invoke(this, e); }