private void OnFocusEngaged(Control sender, FocusEngagedEventArgs args) { if (!IsReadOnly) { EnterGamepadEngagementMode(); } }
// When the user engages the control, put initial focus on the first item. void OnFocusEngaged(Control sender, FocusEngagedEventArgs e) { if (IsGamepadSupported) { InitialButton.Focus(FocusState.Programmatic); } }
// When the user engages the control, put initial focus on the first item. void OnFocusEngaged(Control sender, FocusEngagedEventArgs e) { if (IsGamepadSupported) { InitialButton.Focus(FocusState.Programmatic); } }
private void Rating_FocusEngaged(Control sender, FocusEngagedEventArgs args) { if (actualUserRating == Score.NotSet) { actualUserRating = PlaceholderValue.ToScore(); } ElementSoundPlayer.Play(ElementSoundKind.Invoke); draw(); }
private void searchListView_FocusEngaged(Control sender, FocusEngagedEventArgs args) { refreshSuggestions(); }
private void ContentControl1_FocusEngaged(Control sender, FocusEngagedEventArgs args) { }
private void contentRight_FocusEngaged(Control sender, FocusEngagedEventArgs args) { }
void IFocusEngagedEventArgsResolver.Handled(FocusEngagedEventArgs e, bool handled) => e.Handled = handled;
object IFocusEngagedEventArgsResolver.OriginalSource(FocusEngagedEventArgs e) => e.OriginalSource;
bool IFocusEngagedEventArgsResolver.Handled(FocusEngagedEventArgs e) => e.Handled;
/// <summary> /// Sets a value that marks the routed event as handled. A <c>true</c> value for Handled /// prevents most handlers along the event route from handling the same event again. /// </summary> /// <param name="e">The requested <see cref="FocusEngagedEventArgs"/>.</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 FocusEngagedEventArgs e, bool handled) => Resolver.Handled(e, handled);
/// <summary> /// Gets a value that marks the routed event as handled. A <c>true</c> value for Handled /// prevents most handlers along the event route from handling the same event again. /// </summary> /// <param name="e">The requested <see cref="FocusEngagedEventArgs"/>.</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 FocusEngagedEventArgs e) => Resolver.Handled(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="FocusEngagedEventArgs"/>.</param> /// <returns>The object that raised the event.</returns> public static object OriginalSource(this FocusEngagedEventArgs e) => Resolver.OriginalSource(e);
private void SeekBarSlider_FocusEngaged(Control sender, FocusEngagedEventArgs args) { NowVideoPositionChanging = true; }
private void Container_FocusEngaged(Control sender, FocusEngagedEventArgs args) { Debug.WriteLine("focus engagad: " + args.OriginalSource.ToString()); }
private void WebAddressText_FocusEngaged(Control sender, FocusEngagedEventArgs args) { WebAddressText.IsSuggestionListOpen = true; }
private void NameBox_FocusEngaged(Control sender, FocusEngagedEventArgs args) { }