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)
341private void CriticalCanExecuteWrapper(object parameter, IInputElement target, bool trusted, CanExecuteRoutedEventArgs args)
360internal bool ExecuteCore(object parameter, IInputElement target, bool userInitiated)
370private bool ExecuteImpl(object parameter, IInputElement target, bool userInitiated)
System\Windows\Input\KeyboardDevice.cs (19)
54public override IInputElement Target
66internal IInputElement ForceTarget
70return (IInputElement) _forceTarget;
91public IInputElement FocusedElement
95return (IInputElement) _focus;
113public IInputElement Focus(IInputElement element)
139return (IInputElement) _focus;
278KeyboardFocusChangedEventArgs previewLostFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus);
295KeyboardFocusChangedEventArgs previewGotFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus);
348IInputElement newFocusElement = newFocus as IInputElement;
463KeyboardFocusChangedEventArgs lostFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement) oldFocus, (IInputElement) focus);
471KeyboardFocusChangedEventArgs gotFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement) oldFocus, (IInputElement) _focus);
483AutomationPeer.RaiseFocusChangedEventHelper((IInputElement)_focus);
System\Windows\Input\MouseDevice.cs (32)
180public override IInputElement Target
215public IInputElement DirectlyOver
227internal IInputElement RawDirectlyOver
233IInputElement rawMouseOver = (IInputElement)_rawMouseOver.Target;
247public IInputElement Captured
270public bool Capture(IInputElement element)
278public bool Capture(IInputElement element, CaptureMode captureMode)
545public Point GetPosition(IInputElement relativeTo)
945private void ChangeMouseOver(IInputElement mouseOver, int timestamp)
954IInputElement oldMouseOver = _mouseOver;
1030private void ChangeMouseCapture(IInputElement mouseCapture, IMouseInputProvider providerCapture, CaptureMode captureMode, int timestamp)
1039IInputElement oldMouseCapture = _mouseCapture;
1469IInputElement mouseOver = _mouseOver; // assume mouse is still over whatever it was before
1470IInputElement rawMouseOver = (_rawMouseOver != null) ? (IInputElement)_rawMouseOver.Target : null;
1549IInputElement mouseCapture = InputElement.GetContainingInputElement(_mouseCapture as DependencyObject);
1571IInputElement ieTest = mouseOver;
2045internal static IInputElement GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource)
2047IInputElement enabledHit;
2048IInputElement originalHit;
2054internal static IInputElement GlobalHitTest(Point ptClient, PresentationSource inputSource)
2062private static void GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit)
2100internal static IInputElement LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource)
2102IInputElement enabledHit;
2103IInputElement originalHit;
2109internal static IInputElement LocalHitTest(Point ptClient, PresentationSource inputSource)
2116private static void LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit)
2239private IInputElement _mouseOver;
2244private 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)
423_altNumpadcomposition = new TextComposition(_inputManager, (IInputElement)keyArgs.Source, "", TextCompositionAutoComplete.Off, keyArgs.Device);
626_deadCharTextComposition = new DeadCharTextComposition(_inputManager, (IInputElement)null, inputText , TextCompositionAutoComplete.Off, InputManager.Current.PrimaryKeyboardDevice);
648TextComposition 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;
1139internal static TouchPointCollection GetTouchPoints(IInputElement relativeTo)
1155internal static TouchPoint GetPrimaryTouchPoint(IInputElement relativeTo)
1169internal static void ReleaseAllCaptures(IInputElement element)
1185internal static IEnumerable<TouchDevice> GetCapturedTouches(IInputElement element, bool includeWithin)
1190internal static IEnumerable<TouchDevice> GetTouchesOver(IInputElement element, bool includeWithin)
1195private static bool IsWithin(IInputElement parent, IInputElement child)
1214private static IEnumerable<TouchDevice> GetCapturedOrOverTouches(IInputElement element, bool includeWithin, bool isCapture)
1223IInputElement touchElement = isCapture ? device.Captured : device.DirectlyOver;
1235private static bool AreAnyTouchesCapturedOrDirectlyOver(IInputElement element, bool isCapture)
1243IInputElement touchElement = isCapture ? device.Captured : device.DirectlyOver;
1266Point IManipulator.GetPosition(IInputElement relativeTo)
1291private IInputElement _directlyOver;
1292private IInputElement _captured;