Example #1
0
        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>()
                    });
                }
            }
        }
Example #2
0
 protected void OnCurrentInstanceChanged(CurrentInstanceChangedEventArgs args)
 {
     CurrentInstanceChanged?.Invoke(this, args);
 }