void INoFocusCandidateFoundEventArgsResolver.Handled(NoFocusCandidateFoundEventArgs e, bool handled) => e.Handled = handled;
FocusInputDeviceKind INoFocusCandidateFoundEventArgsResolver.InputDevice(NoFocusCandidateFoundEventArgs e) => e.InputDevice;
FocusNavigationDirection INoFocusCandidateFoundEventArgsResolver.Direction(NoFocusCandidateFoundEventArgs e) => e.Direction;
bool INoFocusCandidateFoundEventArgsResolver.Handled(NoFocusCandidateFoundEventArgs e) => e.Handled;
/// <summary> /// Gets the input device type from which input events are received. /// </summary> /// <param name="e">The requested <see cref="NoFocusCandidateFoundEventArgs"/>.</param> /// <returns>The input device type.</returns> public static FocusInputDeviceKind InputDevice(this NoFocusCandidateFoundEventArgs e) => Resolver.InputDevice(e);
object INoFocusCandidateFoundEventArgsResolver.OriginalSource(NoFocusCandidateFoundEventArgs e) => e.OriginalSource;
/// <summary> /// Sets a value that marks the routed event as handled. A <c>true</c> value for <see cref="NoFocusCandidateFoundEventArgs.Handled"/> /// prevents most handlers along the event route from handling the same event again. /// </summary> /// <param name="e">The requested <see cref="NoFocusCandidateFoundEventArgs"/>.</param> /// <param name="handled"> /// <c>true</c> to mark the routed event handled. <c>false</c> to leave the routed event unhandled, /// which permits the event to potentially route further and be acted on by other handlers. /// The default is <c>false</c>. /// </param> public static void Handled(this NoFocusCandidateFoundEventArgs e, bool handled) => Resolver.Handled(e, handled);
/// <summary> /// Gets a value that marks the routed event as handled. A <c>true</c> value for <see cref="NoFocusCandidateFoundEventArgs.Handled"/> /// prevents most handlers along the event route from handling the same event again. /// </summary> /// <param name="e">The requested <see cref="NoFocusCandidateFoundEventArgs"/>.</param> /// <returns> /// <c>true</c> to mark the routed event handled. <c>false</c> to leave the routed event unhandled, /// which permits the event to potentially route further and be acted on by other handlers. /// The default is <c>false</c>. /// </returns> public static bool Handled(this NoFocusCandidateFoundEventArgs e) => Resolver.Handled(e);
/// <summary> /// Gets the direction that focus moved from element to element within the app UI. /// </summary> /// <param name="e">The requested <see cref="NoFocusCandidateFoundEventArgs"/>.</param> /// <returns>The direction of focus movement.</returns> public static FocusNavigationDirection Direction(this NoFocusCandidateFoundEventArgs e) => Resolver.Direction(e);
/// <summary> /// Gets a reference to the object that raised the event. /// This is often a template part of a control rather than an element that was declared in your app UI. /// </summary> /// <param name="e">The requested <see cref="NoFocusCandidateFoundEventArgs"/>.</param> /// <returns>The object that raised the event.</returns> public static object OriginalSource(this NoFocusCandidateFoundEventArgs e) => Resolver.OriginalSource(e);
private void FrameworkElementNoFocusCandidateFoundHandler(object source, NoFocusCandidateFoundEventArgs e) { FrameworkElement sourceAsFrameworkElement = (FrameworkElement)source; EventOrder.Append("[" + sourceAsFrameworkElement.Name + "NoFocusCandidateFound]"); }