System\Windows\Input\AccessKeyManager.cs (28)
37public static void Register(string key, IInputElement element)
68public static void Unregister(string key, IInputElement element)
102List<IInputElement> targets = akm.GetTargetsForScope(scope, key, null, AccessKeyInformation.Empty);
227IInputElement inputElementSender = sender as IInputElement;
228List<IInputElement> targets = GetTargetsForSender(inputElementSender, key);
236List<IInputElement> targets = GetTargetsForScope(scope, key, null, AccessKeyInformation.Empty);
241private ProcessKeyResult ProcessKey(List<IInputElement> targets, string key, bool existsElsewhere, bool userInitiated)
346private List<IInputElement> GetTargetsForSender(IInputElement sender, string key)
354private List<IInputElement> GetTargetsForScope(object scope, string key, IInputElement sender, AccessKeyInformation senderInfo)
382List<IInputElement> possibleElements;
390List<IInputElement> finalTargets = new List<IInputElement>(1);
395IInputElement element = possibleElements[i];
430private AccessKeyInformation GetInfoForElement(IInputElement element, string key)
452private PresentationSource GetSourceForElement(IInputElement element)
494private bool IsTargetable(IInputElement element)
595private static List<IInputElement> CopyAndPurgeDead(ArrayList elements)
602List<IInputElement> copy = new List<IInputElement>(elements.Count);
615Debug.Assert(element is IInputElement, "Element in AccessKeyManager store was not of type IInputElement");
616copy.Add((IInputElement)element);
670IInputElement accessKeyElement = (cachedElementWeakRef != null) ? (IInputElement)cachedElementWeakRef.Target : null;
714IInputElement currentElement = (IInputElement)currentElementWeakRef.Target;
System\Windows\Input\Command\RoutedCommand.cs (9)
129public void Execute(object parameter, IInputElement target)
151public bool CanExecute(object parameter, IInputElement target)
165internal bool CriticalCanExecute(object parameter, IInputElement target, bool trusted, out bool continueRouting)
311private static IInputElement FilterInputElement(IInputElement elem)
327private bool CanExecuteImpl(object parameter, IInputElement target, bool trusted, out bool continueRouting)
352private void CriticalCanExecuteWrapper(object parameter, IInputElement target, bool trusted, CanExecuteRoutedEventArgs args)
371internal bool ExecuteCore(object parameter, IInputElement target, bool userInitiated)
381private bool ExecuteImpl(object parameter, IInputElement target, bool userInitiated)
System\Windows\Input\KeyboardDevice.cs (19)
63public override IInputElement Target
75internal IInputElement ForceTarget
79return (IInputElement) _forceTarget;
100public IInputElement FocusedElement
104return (IInputElement) _focus;
122public IInputElement Focus(IInputElement element)
148return (IInputElement) _focus;
287KeyboardFocusChangedEventArgs previewLostFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus);
304KeyboardFocusChangedEventArgs previewGotFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus);
357IInputElement newFocusElement = newFocus as IInputElement;
472KeyboardFocusChangedEventArgs lostFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement) oldFocus, (IInputElement) focus);
480KeyboardFocusChangedEventArgs gotFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement) oldFocus, (IInputElement) _focus);
492AutomationPeer.RaiseFocusChangedEventHelper((IInputElement)_focus);
System\Windows\Input\MouseDevice.cs (32)
189public override IInputElement Target
224public IInputElement DirectlyOver
236internal IInputElement RawDirectlyOver
242IInputElement rawMouseOver = (IInputElement)_rawMouseOver.Target;
256public IInputElement Captured
279public bool Capture(IInputElement element)
287public bool Capture(IInputElement element, CaptureMode captureMode)
554public Point GetPosition(IInputElement relativeTo)
954private void ChangeMouseOver(IInputElement mouseOver, int timestamp)
963IInputElement oldMouseOver = _mouseOver;
1039private void ChangeMouseCapture(IInputElement mouseCapture, IMouseInputProvider providerCapture, CaptureMode captureMode, int timestamp)
1048IInputElement oldMouseCapture = _mouseCapture;
1478IInputElement mouseOver = _mouseOver; // assume mouse is still over whatever it was before
1479IInputElement rawMouseOver = (_rawMouseOver != null) ? (IInputElement)_rawMouseOver.Target : null;
1558IInputElement mouseCapture = InputElement.GetContainingInputElement(_mouseCapture as DependencyObject);
1580IInputElement ieTest = mouseOver;
2054internal static IInputElement GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource)
2056IInputElement enabledHit;
2057IInputElement originalHit;
2063internal static IInputElement GlobalHitTest(Point ptClient, PresentationSource inputSource)
2071private static void GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit)
2109internal static IInputElement LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource)
2111IInputElement enabledHit;
2112IInputElement originalHit;
2118internal static IInputElement LocalHitTest(Point ptClient, PresentationSource inputSource)
2125private static void LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit)
2248private IInputElement _mouseOver;
2253private IInputElement _mouseCapture;
System\Windows\Input\TextComposition.cs (5)
86public TextComposition(InputManager inputManager, IInputElement source, string resultText) : this(inputManager, source, resultText, TextCompositionAutoComplete.On)
93public TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete) : this(inputManager, source, resultText, autoComplete, InputManager.Current.PrimaryKeyboardDevice)
108internal TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete, InputDevice inputDevice)
349internal IInputElement Source
432private IInputElement _source;
System\Windows\Input\TextCompositionManager.cs (3)
439_altNumpadcomposition = new TextComposition(_inputManager, (IInputElement)keyArgs.Source, "", TextCompositionAutoComplete.Off, keyArgs.Device);
642_deadCharTextComposition = new DeadCharTextComposition(_inputManager, (IInputElement)null, inputText , TextCompositionAutoComplete.Off, InputManager.Current.PrimaryKeyboardDevice);
664TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.StagingItem.Input.Source, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice);
System\Windows\Input\TouchDevice.cs (38)
108public sealed override IInputElement Target
141public IInputElement DirectlyOver
151public abstract TouchPoint GetTouchPoint(IInputElement relativeTo);
158public abstract TouchPointCollection GetIntermediateTouchPoints(IInputElement relativeTo);
160private IInputElement CriticalHitTest(Point point, bool isSynchronize)
162IInputElement over = null;
198IInputElement capture = InputElement.GetContainingInputElement(_captured as DependencyObject);
219IInputElement ieTest = over;
263private static void EnsureValid(ref IInputElement element)
273private static IInputElement GlobalHitTest(Point pt, PresentationSource inputSource)
278private static IInputElement LocalHitTest(Point pt, PresentationSource inputSource)
293public IInputElement Captured
314public bool Capture(IInputElement element)
325public bool Capture(IInputElement element, CaptureMode captureMode)
355IInputElement oldCapture = _captured;
437private void UpdateReverseInheritedProperty(bool capture, IInputElement oldElement, IInputElement newElement)
605private static void CastInputElement(IInputElement element, out UIElement uiElement, out ContentElement contentElement, out UIElement3D uiElement3D)
612private void RaiseLostCapture(IInputElement oldCapture)
621private void RaiseGotCapture(IInputElement captured)
635protected virtual void OnCapture(IInputElement element, CaptureMode captureMode)
792IInputElement newDirectlyOver = null;
859private void ChangeDirectlyOver(IInputElement newDirectlyOver)
863IInputElement oldDirectlyOver = _directlyOver;
1151internal static TouchPointCollection GetTouchPoints(IInputElement relativeTo)
1167internal static TouchPoint GetPrimaryTouchPoint(IInputElement relativeTo)
1181internal static void ReleaseAllCaptures(IInputElement element)
1197internal static IEnumerable<TouchDevice> GetCapturedTouches(IInputElement element, bool includeWithin)
1202internal static IEnumerable<TouchDevice> GetTouchesOver(IInputElement element, bool includeWithin)
1207private static bool IsWithin(IInputElement parent, IInputElement child)
1226private static IEnumerable<TouchDevice> GetCapturedOrOverTouches(IInputElement element, bool includeWithin, bool isCapture)
1235IInputElement touchElement = isCapture ? device.Captured : device.DirectlyOver;
1247private static bool AreAnyTouchesCapturedOrDirectlyOver(IInputElement element, bool isCapture)
1255IInputElement touchElement = isCapture ? device.Captured : device.DirectlyOver;
1278Point IManipulator.GetPosition(IInputElement relativeTo)
1303private IInputElement _directlyOver;
1304private IInputElement _captured;