C# Class KeyboardEditor.ViewModels.VMKeyEditable

Inheritance: VMContextElementEditable
Show file Open project: Invenietis/ck-certified

Public Methods

Method Description
MoveDown ( int pixels ) : void
MoveLeft ( int pixels ) : void
MoveRight ( int pixels ) : void
MoveUp ( int pixels ) : void
OnKeyDownAction ( int keyCode, int delta ) : void
OnKeyPropertyChanged ( object sender, KeyPropertyChangedEventArgs e ) : void
OnPointerButtonUp ( PointerDeviceEventArgs args ) : void
TriggerMouseEvent ( KeyboardEditorMouseEvent eventType, PointerDeviceEventArgs args ) : void
VMKeyEditable ( VMContextEditable ctx, IKey k ) : System

Protected Methods

Method Description
OnTriggerModeChanged ( ) : void
SetActionOnPropertyChanged ( string propertyName, Action action ) : void

Private Methods

Method Description
DeleteKey ( ) : void
DispatchPropertyChanged ( string propertyName, string target ) : void
Dispose ( ) : void
EnsureKeyMode ( ) : void

Makes sure there is a KeyMode on this key for the current mode.

GetImageSourceCache ( ) : void

We save the bitmapImage that is the source of the image set to this key. Thanks to that, we can call the Image property from multiple components. If we save the Image itself in a cache, it can only be used in one component at a time.

HandleBottomLeft ( DragDeltaEventArgs args ) : void
HandleBottomRight ( DragDeltaEventArgs args ) : void
HandleTopLeft ( DragDeltaEventArgs args ) : void
HandleTopRight ( DragDeltaEventArgs args ) : void
OnConfigChanged ( object sender, ConfigChangedEventArgs e ) : void
OnKeyModelCollectionChanged ( object sender, KeyModeEventArgs e ) : void
OnLayoutKeyModelCollectionChanged ( object sender, LayoutKeyModeEventArgs e ) : void
OnModeChanged ( object sender, KeyboardModeChangedEventArgs e ) : void
OnMouseMove ( PointerDeviceEventArgs e ) : void
OnPropertyChangedTriggered ( object sender, PropertyChangedEventArgs e ) : void
PositionChanged ( ) : void
RefreshKeyModeCollection ( ) : void
RefreshKeyboardModelViewModels ( ) : void
RefreshLayoutKeyModeCollection ( ) : void
RegisterEvents ( ) : void
RegisterOnPropertyChanged ( ) : void
SetCommands ( ) : void
StopDragging ( ) : void
TriggerOnPropertyChanged ( string propertyName ) : void
UnregisterEvents ( ) : void

Method Details

MoveDown() public method

public MoveDown ( int pixels ) : void
pixels int
return void

MoveLeft() public method

public MoveLeft ( int pixels ) : void
pixels int
return void

MoveRight() public method

public MoveRight ( int pixels ) : void
pixels int
return void

MoveUp() public method

public MoveUp ( int pixels ) : void
pixels int
return void

OnKeyDownAction() public method

public OnKeyDownAction ( int keyCode, int delta ) : void
keyCode int
delta int
return void

OnKeyPropertyChanged() public method

public OnKeyPropertyChanged ( object sender, KeyPropertyChangedEventArgs e ) : void
sender object
e KeyPropertyChangedEventArgs
return void

OnPointerButtonUp() public method

public OnPointerButtonUp ( PointerDeviceEventArgs args ) : void
args PointerDeviceEventArgs
return void

OnTriggerModeChanged() protected method

protected OnTriggerModeChanged ( ) : void
return void

SetActionOnPropertyChanged() protected method

protected SetActionOnPropertyChanged ( string propertyName, Action action ) : void
propertyName string
action Action
return void

TriggerMouseEvent() public method

public TriggerMouseEvent ( KeyboardEditorMouseEvent eventType, PointerDeviceEventArgs args ) : void
eventType KeyboardEditorMouseEvent
args PointerDeviceEventArgs
return void

VMKeyEditable() public method

public VMKeyEditable ( VMContextEditable ctx, IKey k ) : System
ctx VMContextEditable
k IKey
return System