Core\CSharp\System\Windows\Input\AccessKeyManager.cs (28)
38public static void Register(string key, IInputElement element)
72public static void Unregister(string key, IInputElement element)
109List<IInputElement> targets = akm.GetTargetsForScope(scope, key, null, AccessKeyInformation.Empty);
257IInputElement inputElementSender = sender as IInputElement;
258List<IInputElement> targets = GetTargetsForSender(inputElementSender, key);
271List<IInputElement> targets = GetTargetsForScope(scope, key, null, AccessKeyInformation.Empty);
281private ProcessKeyResult ProcessKey(List<IInputElement> targets, string key, bool existsElsewhere, bool userInitiated)
401private List<IInputElement> GetTargetsForSender(IInputElement sender, string key)
415private List<IInputElement> GetTargetsForScope(object scope, string key, IInputElement sender, AccessKeyInformation senderInfo)
443List<IInputElement> possibleElements;
451List<IInputElement> finalTargets = new List<IInputElement>(1);
456IInputElement element = possibleElements[i];
495private AccessKeyInformation GetInfoForElement(IInputElement element, string key)
521private PresentationSource GetSourceForElement(IInputElement element)
575private bool IsTargetable(IInputElement element)
681private static List<IInputElement> CopyAndPurgeDead(ArrayList elements)
688List<IInputElement> copy = new List<IInputElement>(elements.Count);
701Debug.Assert(element is IInputElement, "Element in AccessKeyManager store was not of type IInputElement");
702copy.Add((IInputElement)element);
756IInputElement accessKeyElement = (cachedElementWeakRef != null) ? (IInputElement)cachedElementWeakRef.Target : null;
800IInputElement currentElement = (IInputElement)currentElementWeakRef.Target;
Core\CSharp\System\Windows\Input\Command\RoutedCommand.cs (9)
146public void Execute(object parameter, IInputElement target)
173public bool CanExecute(object parameter, IInputElement target)
191internal bool CriticalCanExecute(object parameter, IInputElement target, bool trusted, out bool continueRouting)
353private static IInputElement FilterInputElement(IInputElement elem)
373private bool CanExecuteImpl(object parameter, IInputElement target, bool trusted, out bool continueRouting)
402private void CriticalCanExecuteWrapper(object parameter, IInputElement target, bool trusted, CanExecuteRoutedEventArgs args)
428internal bool ExecuteCore(object parameter, IInputElement target, bool userInitiated)
445private bool ExecuteImpl(object parameter, IInputElement target, bool userInitiated)
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (19)
66public override IInputElement Target
78internal IInputElement ForceTarget
82return (IInputElement) _forceTarget;
126public IInputElement FocusedElement
131return (IInputElement) _focus;
155public IInputElement Focus(IInputElement element)
181return (IInputElement) _focus;
356KeyboardFocusChangedEventArgs previewLostFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus);
374KeyboardFocusChangedEventArgs previewGotFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus);
430IInputElement newFocusElement = newFocus as IInputElement;
544KeyboardFocusChangedEventArgs lostFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement) oldFocus, (IInputElement) focus);
552KeyboardFocusChangedEventArgs gotFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement) oldFocus, (IInputElement) _focus);
565AutomationPeer.RaiseFocusChangedEventHelper((IInputElement)_focus);
Core\CSharp\System\Windows\Input\MouseDevice.cs (32)
207public override IInputElement Target
272public IInputElement DirectlyOver
286internal IInputElement RawDirectlyOver
292IInputElement rawMouseOver = (IInputElement)_rawMouseOver.Target;
306public IInputElement Captured
329public bool Capture(IInputElement element)
342public bool Capture(IInputElement element, CaptureMode captureMode)
628public Point GetPosition(IInputElement relativeTo)
1050private void ChangeMouseOver(IInputElement mouseOver, int timestamp)
1059IInputElement oldMouseOver = _mouseOver;
1143private void ChangeMouseCapture(IInputElement mouseCapture, IMouseInputProvider providerCapture, CaptureMode captureMode, int timestamp)
1152IInputElement oldMouseCapture = _mouseCapture;
1583IInputElement mouseOver = _mouseOver; // assume mouse is still over whatever it was before
1584IInputElement rawMouseOver = (_rawMouseOver != null) ? (IInputElement)_rawMouseOver.Target : null;
1659IInputElement mouseCapture = InputElement.GetContainingInputElement(_mouseCapture as DependencyObject);
1681IInputElement ieTest = mouseOver;
2161internal static IInputElement GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource)
2163IInputElement enabledHit;
2164IInputElement originalHit;
2170internal static IInputElement GlobalHitTest(Point ptClient, PresentationSource inputSource)
2183private static void GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit)
2230internal static IInputElement LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource)
2232IInputElement enabledHit;
2233IInputElement originalHit;
2239internal static IInputElement LocalHitTest(Point ptClient, PresentationSource inputSource)
2251private static void LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit)
2385private IInputElement _mouseOver;
2390private IInputElement _mouseCapture;
Core\CSharp\System\Windows\Input\TextComposition.cs (5)
91public TextComposition(InputManager inputManager, IInputElement source, string resultText) : this(inputManager, source, resultText, TextCompositionAutoComplete.On)
103public TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete) : this(inputManager, source, resultText, autoComplete, InputManager.Current.PrimaryKeyboardDevice)
123internal TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete, InputDevice inputDevice)
373internal IInputElement Source
464private IInputElement _source;
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (3)
564_altNumpadcomposition = new TextComposition(_inputManager, (IInputElement)keyArgs.Source, "", TextCompositionAutoComplete.Off, keyArgs.Device);
776_deadCharTextComposition = new DeadCharTextComposition(_inputManager, (IInputElement)null, inputText , TextCompositionAutoComplete.Off, InputManager.Current.PrimaryKeyboardDevice);
798TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.StagingItem.Input.Source, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice);
Core\CSharp\System\Windows\Input\TouchDevice.cs (38)
130public sealed override IInputElement Target
175public IInputElement DirectlyOver
185public abstract TouchPoint GetTouchPoint(IInputElement relativeTo);
192public abstract TouchPointCollection GetIntermediateTouchPoints(IInputElement relativeTo);
199private IInputElement CriticalHitTest(Point point, bool isSynchronize)
201IInputElement over = null;
237IInputElement capture = InputElement.GetContainingInputElement(_captured as DependencyObject);
258IInputElement ieTest = over;
302private static void EnsureValid(ref IInputElement element)
312private static IInputElement GlobalHitTest(Point pt, PresentationSource inputSource)
317private static IInputElement LocalHitTest(Point pt, PresentationSource inputSource)
332public IInputElement Captured
353public bool Capture(IInputElement element)
364public bool Capture(IInputElement element, CaptureMode captureMode)
394IInputElement oldCapture = _captured;
476private void UpdateReverseInheritedProperty(bool capture, IInputElement oldElement, IInputElement newElement)
647private static void CastInputElement(IInputElement element, out UIElement uiElement, out ContentElement contentElement, out UIElement3D uiElement3D)
659private void RaiseLostCapture(IInputElement oldCapture)
673private void RaiseGotCapture(IInputElement captured)
687protected virtual void OnCapture(IInputElement element, CaptureMode captureMode)
858IInputElement newDirectlyOver = null;
924private void ChangeDirectlyOver(IInputElement newDirectlyOver)
928IInputElement oldDirectlyOver = _directlyOver;
1240internal static TouchPointCollection GetTouchPoints(IInputElement relativeTo)
1256internal static TouchPoint GetPrimaryTouchPoint(IInputElement relativeTo)
1270internal static void ReleaseAllCaptures(IInputElement element)
1286internal static IEnumerable<TouchDevice> GetCapturedTouches(IInputElement element, bool includeWithin)
1291internal static IEnumerable<TouchDevice> GetTouchesOver(IInputElement element, bool includeWithin)
1296private static bool IsWithin(IInputElement parent, IInputElement child)
1315private static IEnumerable<TouchDevice> GetCapturedOrOverTouches(IInputElement element, bool includeWithin, bool isCapture)
1324IInputElement touchElement = isCapture ? device.Captured : device.DirectlyOver;
1336private static bool AreAnyTouchesCapturedOrDirectlyOver(IInputElement element, bool isCapture)
1344IInputElement touchElement = isCapture ? device.Captured : device.DirectlyOver;
1367Point IManipulator.GetPosition(IInputElement relativeTo)
1401private IInputElement _directlyOver;
1402private IInputElement _captured;