C# Class Mckineap.Behaviors.MouseBehavior

Manage all the mouse behaviors
Show file Open project: loic-lavergne/mckineap

Public Properties

Property Type Description
MouseDownCommandProperty System.Windows.DependencyProperty
MouseMoveCommandProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetMouseDownCommand ( UIElement element ) : ICommand
GetMouseMoveCommand ( DependencyObject d ) : ICommand
SetMouseDownCommand ( UIElement element, ICommand value ) : void
SetMouseMoveCommand ( DependencyObject d, ICommand value ) : void

Private Methods

Method Description
MouseDownCommandChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
MouseMoveCommandChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
element_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
element_MouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Method Details

GetMouseDownCommand() public static method

public static GetMouseDownCommand ( UIElement element ) : ICommand
element System.Windows.UIElement
return ICommand

GetMouseMoveCommand() public static method

public static GetMouseMoveCommand ( DependencyObject d ) : ICommand
d System.Windows.DependencyObject
return ICommand

SetMouseDownCommand() public static method

public static SetMouseDownCommand ( UIElement element, ICommand value ) : void
element System.Windows.UIElement
value ICommand
return void

SetMouseMoveCommand() public static method

public static SetMouseMoveCommand ( DependencyObject d, ICommand value ) : void
d System.Windows.DependencyObject
value ICommand
return void

Property Details

MouseDownCommandProperty public static property

public static DependencyProperty,System.Windows MouseDownCommandProperty
return System.Windows.DependencyProperty

MouseMoveCommandProperty public static property

public static DependencyProperty,System.Windows MouseMoveCommandProperty
return System.Windows.DependencyProperty