System\Windows\Input\AccessKeyManager.cs (28)
25public static void Register(string key, IInputElement element)
56public static void Unregister(string key, IInputElement element)
90List<IInputElement> targets = akm.GetTargetsForScope(scope, key, null, AccessKeyInformation.Empty);
215IInputElement inputElementSender = sender as IInputElement;
216List<IInputElement> targets = GetTargetsForSender(inputElementSender, key);
224List<IInputElement> targets = GetTargetsForScope(scope, key, null, AccessKeyInformation.Empty);
229private ProcessKeyResult ProcessKey(List<IInputElement> targets, string key, bool existsElsewhere, bool userInitiated)
334private List<IInputElement> GetTargetsForSender(IInputElement sender, string key)
342private List<IInputElement> GetTargetsForScope(object scope, string key, IInputElement sender, AccessKeyInformation senderInfo)
370List<IInputElement> possibleElements;
378List<IInputElement> finalTargets = new List<IInputElement>(1);
383IInputElement element = possibleElements[i];
418private AccessKeyInformation GetInfoForElement(IInputElement element, string key)
440private PresentationSource GetSourceForElement(IInputElement element)
482private bool IsTargetable(IInputElement element)
583private static List<IInputElement> CopyAndPurgeDead(ArrayList elements)
590List<IInputElement> copy = new List<IInputElement>(elements.Count);
603Debug.Assert(element is IInputElement, "Element in AccessKeyManager store was not of type IInputElement");
604copy.Add((IInputElement)element);
658IInputElement accessKeyElement = (cachedElementWeakRef != null) ? (IInputElement)cachedElementWeakRef.Target : null;
702IInputElement currentElement = (IInputElement)currentElementWeakRef.Target;
System\Windows\Input\Command\RoutedCommand.cs (9)
118public void Execute(object parameter, IInputElement target)
140public bool CanExecute(object parameter, IInputElement target)
154internal bool CriticalCanExecute(object parameter, IInputElement target, bool trusted, out bool continueRouting)
300private static IInputElement FilterInputElement(IInputElement elem)
316private bool CanExecuteImpl(object parameter, IInputElement target, bool trusted, out bool continueRouting)
343private void CriticalCanExecuteWrapper(object parameter, IInputElement target, bool trusted, CanExecuteRoutedEventArgs args)
362internal bool ExecuteCore(object parameter, IInputElement target, bool userInitiated)
372private bool ExecuteImpl(object parameter, IInputElement target, bool userInitiated)
System\Windows\Input\KeyboardDevice.cs (19)
52public override IInputElement Target
64internal IInputElement ForceTarget
68return (IInputElement) _forceTarget;
89public IInputElement FocusedElement
93return (IInputElement) _focus;
111public IInputElement Focus(IInputElement element)
136return (IInputElement) _focus;
275KeyboardFocusChangedEventArgs previewLostFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus)
294KeyboardFocusChangedEventArgs previewGotFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus)
353IInputElement newFocusElement = newFocus as IInputElement;
468KeyboardFocusChangedEventArgs lostFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement)oldFocus, (IInputElement)focus)
478KeyboardFocusChangedEventArgs gotFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement)oldFocus, (IInputElement)_focus)
492AutomationPeer.RaiseFocusChangedEventHelper((IInputElement)_focus);
System\Windows\Input\MouseDevice.cs (32)
178public override IInputElement Target
213public IInputElement DirectlyOver
225internal IInputElement RawDirectlyOver
231IInputElement rawMouseOver = (IInputElement)_rawMouseOver.Target;
245public IInputElement Captured
268public bool Capture(IInputElement element)
276public bool Capture(IInputElement element, CaptureMode captureMode)
540public Point GetPosition(IInputElement relativeTo)
944private void ChangeMouseOver(IInputElement mouseOver, int timestamp)
953IInputElement oldMouseOver = _mouseOver;
1029private void ChangeMouseCapture(IInputElement mouseCapture, IMouseInputProvider providerCapture, CaptureMode captureMode, int timestamp)
1038IInputElement oldMouseCapture = _mouseCapture;
1484IInputElement mouseOver = _mouseOver; // assume mouse is still over whatever it was before
1485IInputElement rawMouseOver = (_rawMouseOver != null) ? (IInputElement)_rawMouseOver.Target : null;
1564IInputElement mouseCapture = InputElement.GetContainingInputElement(_mouseCapture as DependencyObject);
1586IInputElement ieTest = mouseOver;
2080internal static IInputElement GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource)
2082IInputElement enabledHit;
2083IInputElement originalHit;
2089internal static IInputElement GlobalHitTest(Point ptClient, PresentationSource inputSource)
2097private static void GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit)
2135internal static IInputElement LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource)
2137IInputElement enabledHit;
2138IInputElement originalHit;
2144internal static IInputElement LocalHitTest(Point ptClient, PresentationSource inputSource)
2151private static void LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit)
2274private IInputElement _mouseOver;
2279private IInputElement _mouseCapture;
System\Windows\Input\TextComposition.cs (5)
74public TextComposition(InputManager inputManager, IInputElement source, string resultText) : this(inputManager, source, resultText, TextCompositionAutoComplete.On)
81public TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete) : this(inputManager, source, resultText, autoComplete, InputManager.Current.PrimaryKeyboardDevice)
96internal TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete, InputDevice inputDevice)
337internal IInputElement Source
420private IInputElement _source;
System\Windows\Input\TextCompositionManager.cs (3)
429_altNumpadcomposition = new TextComposition(_inputManager, (IInputElement)keyArgs.Source, "", TextCompositionAutoComplete.Off, keyArgs.Device);
638_deadCharTextComposition = new DeadCharTextComposition(_inputManager, (IInputElement)null, inputText , TextCompositionAutoComplete.Off, InputManager.Current.PrimaryKeyboardDevice);
660TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.StagingItem.Input.Source, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice);
System\Windows\Input\TouchDevice.cs (38)
96public sealed override IInputElement Target
129public IInputElement DirectlyOver
139public abstract TouchPoint GetTouchPoint(IInputElement relativeTo);
146public abstract TouchPointCollection GetIntermediateTouchPoints(IInputElement relativeTo);
148private IInputElement CriticalHitTest(Point point, bool isSynchronize)
150IInputElement over = null;
186IInputElement capture = InputElement.GetContainingInputElement(_captured as DependencyObject);
207IInputElement ieTest = over;
251private static void EnsureValid(ref IInputElement element)
261private static IInputElement GlobalHitTest(Point pt, PresentationSource inputSource)
266private static IInputElement LocalHitTest(Point pt, PresentationSource inputSource)
281public IInputElement Captured
302public bool Capture(IInputElement element)
313public bool Capture(IInputElement element, CaptureMode captureMode)
343IInputElement oldCapture = _captured;
425private void UpdateReverseInheritedProperty(bool capture, IInputElement oldElement, IInputElement newElement)
593private static void CastInputElement(IInputElement element, out UIElement uiElement, out ContentElement contentElement, out UIElement3D uiElement3D)
600private void RaiseLostCapture(IInputElement oldCapture)
609private void RaiseGotCapture(IInputElement captured)
623protected virtual void OnCapture(IInputElement element, CaptureMode captureMode)
780IInputElement newDirectlyOver = null;
847private void ChangeDirectlyOver(IInputElement newDirectlyOver)
851IInputElement oldDirectlyOver = _directlyOver;
1141internal static TouchPointCollection GetTouchPoints(IInputElement relativeTo)
1157internal static TouchPoint GetPrimaryTouchPoint(IInputElement relativeTo)
1171internal static void ReleaseAllCaptures(IInputElement element)
1187internal static IEnumerable<TouchDevice> GetCapturedTouches(IInputElement element, bool includeWithin)
1192internal static IEnumerable<TouchDevice> GetTouchesOver(IInputElement element, bool includeWithin)
1197private static bool IsWithin(IInputElement parent, IInputElement child)
1216private static IEnumerable<TouchDevice> GetCapturedOrOverTouches(IInputElement element, bool includeWithin, bool isCapture)
1225IInputElement touchElement = isCapture ? device.Captured : device.DirectlyOver;
1237private static bool AreAnyTouchesCapturedOrDirectlyOver(IInputElement element, bool isCapture)
1245IInputElement touchElement = isCapture ? device.Captured : device.DirectlyOver;
1268Point IManipulator.GetPosition(IInputElement relativeTo)
1293private IInputElement _directlyOver;
1294private IInputElement _captured;