C# Class Orchestra.KeyPressWindowWatcher

Mostra file Open project: WildGums/Orchestra Class Usage Examples

Public Methods

Method Description
IsAltHeldDown ( ) : bool
IsCtrlHeldDown ( ) : bool
IsKeyHeldDown ( Key key ) : bool
IsShiftHeldDown ( ) : bool
SetKeyDownHandler ( Action handler ) : void
SetKeyUpHandler ( Action handler ) : void
SetPreviewKeyDownHandler ( Action handler ) : void
SetPreviewKeyUpHandler ( Action handler ) : void
UnWatchWindow ( Window window ) : void
WatchWindow ( Window window ) : void

Private Methods

Method Description
OnKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
OnKeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void
OnPreviewKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
OnPreviewKeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void

Method Details

IsAltHeldDown() public static method

public static IsAltHeldDown ( ) : bool
return bool

IsCtrlHeldDown() public static method

public static IsCtrlHeldDown ( ) : bool
return bool

IsKeyHeldDown() public static method

public static IsKeyHeldDown ( Key key ) : bool
key Key
return bool

IsShiftHeldDown() public static method

public static IsShiftHeldDown ( ) : bool
return bool

SetKeyDownHandler() public method

public SetKeyDownHandler ( Action handler ) : void
handler Action
return void

SetKeyUpHandler() public method

public SetKeyUpHandler ( Action handler ) : void
handler Action
return void

SetPreviewKeyDownHandler() public method

public SetPreviewKeyDownHandler ( Action handler ) : void
handler Action
return void

SetPreviewKeyUpHandler() public method

public SetPreviewKeyUpHandler ( Action handler ) : void
handler Action
return void

UnWatchWindow() public method

public UnWatchWindow ( Window window ) : void
window System.Windows.Window
return void

WatchWindow() public method

public WatchWindow ( Window window ) : void
window System.Windows.Window
return void