public void SwitchTo()
{
// This function is deprecated, so should probably be replaced.
SwitchToThisWindow(this.HWnd, true);
}
/// <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(); }