65 references to MouseAction
PresentationCore (65)
Core\CSharp\System\Windows\Input\Command\MouseActionConverter.cs (25)
70
return (MouseActionConverter.IsDefinedMouseAction((
MouseAction
)context.Instance));
90
return
MouseAction
.None;
92
MouseAction
mouseAction =
MouseAction
.None;
95
case "LEFTCLICK" : mouseAction =
MouseAction
.LeftClick; break;
96
case "RIGHTCLICK" : mouseAction =
MouseAction
.RightClick; break;
97
case "MIDDLECLICK" : mouseAction =
MouseAction
.MiddleClick; break;
98
case "WHEELCLICK" : mouseAction =
MouseAction
.WheelClick; break;
99
case "LEFTDOUBLECLICK" : mouseAction =
MouseAction
.LeftDoubleClick; break;
100
case "RIGHTDOUBLECLICK" : mouseAction =
MouseAction
.RightDoubleClick; break;
101
case "MIDDLEDOUBLECLICK": mouseAction =
MouseAction
.MiddleDoubleClick; break;
125
MouseAction
mouseActionValue = (
MouseAction
)value ;
131
case
MouseAction
.None : mouseAction=String.Empty; break;
132
case
MouseAction
.LeftClick : mouseAction="LeftClick"; break;
133
case
MouseAction
.RightClick : mouseAction="RightClick"; break;
134
case
MouseAction
.MiddleClick : mouseAction="MiddleClick"; break;
135
case
MouseAction
.WheelClick : mouseAction="WheelClick"; break;
136
case
MouseAction
.LeftDoubleClick : mouseAction="LeftDoubleClick"; break;
137
case
MouseAction
.RightDoubleClick : mouseAction="RightDoubleClick"; break;
138
case
MouseAction
.MiddleDoubleClick: mouseAction="MiddleDoubleClick"; break;
143
throw new InvalidEnumArgumentException("value", (int)mouseActionValue, typeof(
MouseAction
));
149
internal static bool IsDefinedMouseAction(
MouseAction
mouseAction)
151
return (mouseAction >=
MouseAction
.None && mouseAction <=
MouseAction
.MiddleDoubleClick);
Core\CSharp\System\Windows\Input\Command\MouseActionValueSerializer.cs (4)
50
return value is
MouseAction
&& MouseActionConverter.IsDefinedMouseAction((
MouseAction
)value);
61
TypeConverter converter = TypeDescriptor.GetConverter(typeof(
MouseAction
));
76
TypeConverter converter = TypeDescriptor.GetConverter(typeof(
MouseAction
));
Core\CSharp\System\Windows\Input\Command\MouseBinding.cs (7)
61
internal MouseBinding(ICommand command,
MouseAction
mouseAction)
128
DependencyProperty.Register("MouseAction", typeof(
MouseAction
), typeof(MouseBinding), new UIPropertyMetadata(
MouseAction
.None, new PropertyChangedCallback(OnMouseActionPropertyChanged)));
133
public
MouseAction
MouseAction
137
return (
MouseAction
)GetValue(MouseActionProperty);
148
mouseBinding.SynchronizeGestureFromProperties((
MouseAction
)(e.NewValue));
210
private void SynchronizeGestureFromProperties(
MouseAction
mouseAction)
Core\CSharp\System\Windows\Input\Command\MouseGesture.cs (24)
53
public MouseGesture(
MouseAction
mouseAction): this(mouseAction, ModifierKeys.None)
62
public MouseGesture(
MouseAction
mouseAction,ModifierKeys modifiers) // acclerator action
65
throw new InvalidEnumArgumentException("mouseAction", (int)mouseAction, typeof(
MouseAction
));
87
public
MouseAction
MouseAction
95
if (!MouseGesture.IsDefinedMouseAction((
MouseAction
)value))
96
throw new InvalidEnumArgumentException("value", (int)value, typeof(
MouseAction
));
99
_mouseAction = (
MouseAction
)value;
136
MouseAction
mouseAction = GetMouseAction(inputEventArgs);
137
if(mouseAction !=
MouseAction
.None)
146
internal static bool IsDefinedMouseAction(
MouseAction
mouseAction)
148
return (mouseAction >=
MouseAction
.None && mouseAction <=
MouseAction
.MiddleDoubleClick);
179
internal static
MouseAction
GetMouseAction(InputEventArgs inputArgs)
181
MouseAction
MouseAction =
MouseAction
.None;
188
MouseAction =
MouseAction
.WheelClick;
199
MouseAction =
MouseAction
.LeftDoubleClick;
201
MouseAction =
MouseAction
.LeftClick;
208
MouseAction =
MouseAction
.RightDoubleClick;
210
MouseAction =
MouseAction
.RightClick;
217
MouseAction =
MouseAction
.MiddleDoubleClick;
219
MouseAction =
MouseAction
.MiddleClick;
236
private
MouseAction
_mouseAction =
MouseAction
.None;
Core\CSharp\System\Windows\Input\Command\MouseGestureConverter.cs (5)
70
return new MouseGesture(
MouseAction
.None, ModifierKeys.None); ;
85
TypeConverter mouseActionConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.
MouseAction
));
103
return new MouseGesture((
MouseAction
)mouseAction, (ModifierKeys)modifierKeys);
109
return new MouseGesture((
MouseAction
)mouseAction);
174
TypeConverter mouseActionConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.
MouseAction
));