C# Class Switcheroo.MainWindow

Inheritance: System.Windows.Window
显示文件 Open project: kvakulo/Switcheroo

Public Properties

Property Type Description
CloseWindowCommand System.Windows.Input.RoutedUICommand
ScrollListDownCommand System.Windows.Input.RoutedUICommand
ScrollListUpCommand System.Windows.Input.RoutedUICommand
SwitchToWindowCommand System.Windows.Input.RoutedUICommand

Public Methods

Method Description
MainWindow ( ) : System

Private Methods

Method Description
About ( ) : void

Show About dialog.

ActivateAndFocusMainWindow ( ) : void
AltTabPressed ( object sender, Switcheroo.AltTabHookEventArgs e ) : void
AreWindowsRelated ( ManagedWinapi.Windows.SystemWindow window1, ManagedWinapi.Windows.SystemWindow window2 ) : bool
CenterWindow ( ) : void

Place the Switcheroo window in the center of the screen

CheckForUpdates ( ) : void
CloseWindow ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
DisableSystemMenu ( ) : void
FocusItemInList ( InitialFocus focus, bool foregroundWindowMovedToBottom ) : void
GetFormattedTitleFromBestResult ( IList matchResults ) : string
GetLatestVersion ( ) : Task
HideWindow ( ) : void
ListBoxItem_MouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
LoadData ( InitialFocus focus ) : void

Populates the window list with the current running windows.

MainWindow_OnLoaded ( object sender, RoutedEventArgs e ) : void
MainWindow_OnLostFocus ( object sender, EventArgs e ) : void
NextItem ( ) : void
OnClose ( object sender, System e ) : void
OnEnterPressed ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
Options ( ) : void

Show Options dialog.

PreviousItem ( ) : void
Quit ( ) : void

Quit Switcheroo

RemoveWindow ( AppWindowViewModel window ) : void
RunOnStartup ( MenuItem menuItem ) : void
ScrollListDown ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
ScrollListUp ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
ScrollSelectedItemIntoView ( ) : void
SetUpAltTabHook ( ) : void
SetUpHotKey ( ) : void
SetUpKeyBindings ( ) : void
SetUpNotifyIcon ( ) : void
ShowHelpTextBlock_OnPreviewMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
Switch ( ) : void

Switches the window associated with the selected item.

TextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs args ) : void
hotkey_HotkeyPressed ( object sender, EventArgs e ) : void

Method Details

MainWindow() public method

public MainWindow ( ) : System
return System

Property Details

CloseWindowCommand public_oe static_oe property

public static RoutedUICommand,System.Windows.Input CloseWindowCommand
return System.Windows.Input.RoutedUICommand

ScrollListDownCommand public_oe static_oe property

public static RoutedUICommand,System.Windows.Input ScrollListDownCommand
return System.Windows.Input.RoutedUICommand

ScrollListUpCommand public_oe static_oe property

public static RoutedUICommand,System.Windows.Input ScrollListUpCommand
return System.Windows.Input.RoutedUICommand

SwitchToWindowCommand public_oe static_oe property

public static RoutedUICommand,System.Windows.Input SwitchToWindowCommand
return System.Windows.Input.RoutedUICommand