C# Class KeyboardEditor.ViewModels.VMKeyEditable

Inheritance: VMContextElementEditable
Afficher le fichier Open project: Invenietis/ck-certified

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnTriggerModeChanged ( ) : void
SetActionOnPropertyChanged ( string propertyName, Action action ) : void

Private Methods

Méthode 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 méthode

public MoveDown ( int pixels ) : void
pixels int
Résultat void

MoveLeft() public méthode

public MoveLeft ( int pixels ) : void
pixels int
Résultat void

MoveRight() public méthode

public MoveRight ( int pixels ) : void
pixels int
Résultat void

MoveUp() public méthode

public MoveUp ( int pixels ) : void
pixels int
Résultat void

OnKeyDownAction() public méthode

public OnKeyDownAction ( int keyCode, int delta ) : void
keyCode int
delta int
Résultat void

OnKeyPropertyChanged() public méthode

public OnKeyPropertyChanged ( object sender, KeyPropertyChangedEventArgs e ) : void
sender object
e KeyPropertyChangedEventArgs
Résultat void

OnPointerButtonUp() public méthode

public OnPointerButtonUp ( PointerDeviceEventArgs args ) : void
args PointerDeviceEventArgs
Résultat void

OnTriggerModeChanged() protected méthode

protected OnTriggerModeChanged ( ) : void
Résultat void

SetActionOnPropertyChanged() protected méthode

protected SetActionOnPropertyChanged ( string propertyName, Action action ) : void
propertyName string
action Action
Résultat void

TriggerMouseEvent() public méthode

public TriggerMouseEvent ( KeyboardEditorMouseEvent eventType, PointerDeviceEventArgs args ) : void
eventType KeyboardEditorMouseEvent
args PointerDeviceEventArgs
Résultat void

VMKeyEditable() public méthode

public VMKeyEditable ( VMContextEditable ctx, IKey k ) : System
ctx VMContextEditable
k IKey
Résultat System