private void TabStrip_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (App.InteractionViewModel.TabStripSelectedIndex >= 0 && App.InteractionViewModel.TabStripSelectedIndex < Items.Count) { CurrentSelectedAppInstance = GetCurrentSelectedTabInstance <IShellPage>(); if (CurrentSelectedAppInstance != null) { CurrentInstanceChanged?.Invoke(this, new CurrentInstanceChangedEventArgs() { CurrentInstance = CurrentSelectedAppInstance, ShellPageInstances = GetAllTabInstances <IShellPage>() }); } } }
protected void OnCurrentInstanceChanged(CurrentInstanceChangedEventArgs args) { CurrentInstanceChanged?.Invoke(this, args); }