Switcheroo.AppWindow.SwitchTo C# (CSharp) Method

SwitchTo() public method

Sets the focus to this window and brings it to the foreground.
public SwitchTo ( ) : void
return void
        public void SwitchTo()
        {
            // This function is deprecated, so should probably be replaced.
            SwitchToThisWindow(this.HWnd, true);
        }

Usage Example

Example #1
0
 /// <summary>
 /// Switches the window associated with the selected item.
 /// </summary>
 private void Switch()
 {
     if (lb.Items.Count > 0)
     {
         AppWindow win = (AppWindow)lb.SelectedItem ?? (AppWindow)lb.Items[0];
         win.SwitchTo();
     }
     Hide();
 }
All Usage Examples Of Switcheroo.AppWindow::SwitchTo