Example #1
0
 private void MultitaskingControl_CurrentInstanceChanged(object sender, CurrentInstanceChangedEventArgs e)
 {
     foreach (ITabItemContent instance in e.PageInstances)
     {
         if (instance != null)
         {
             instance.IsCurrentInstance = instance == e.CurrentInstance;
         }
     }
 }
Example #2
0
 private void MultitaskingControl_CurrentInstanceChanged(object sender, CurrentInstanceChangedEventArgs e)
 {
     foreach (IShellPage instance in e.ShellPageInstances)
     {
         if (instance != null)
         {
             if (instance == e.CurrentInstance)
             {
                 instance.IsCurrentInstance = true;
             }
             else
             {
                 instance.IsCurrentInstance = false;
             }
         }
     }
 }
Example #3
0
 protected void OnCurrentInstanceChanged(CurrentInstanceChangedEventArgs args)
 {
     CurrentInstanceChanged?.Invoke(this, args);
 }