Пример #1
0
 private void OnFocusEngaged(Control sender, FocusEngagedEventArgs args)
 {
     if (!IsReadOnly)
     {
         EnterGamepadEngagementMode();
     }
 }
Пример #2
0
 // 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);
     }
 }
Пример #4
0
        private void Rating_FocusEngaged(Control sender, FocusEngagedEventArgs args)
        {
            if (actualUserRating == Score.NotSet)
            {
                actualUserRating = PlaceholderValue.ToScore();
            }

            ElementSoundPlayer.Play(ElementSoundKind.Invoke);
            draw();
        }
Пример #5
0
 private void searchListView_FocusEngaged(Control sender, FocusEngagedEventArgs args)
 {
     refreshSuggestions();
 }
Пример #6
0
 private void ContentControl1_FocusEngaged(Control sender, FocusEngagedEventArgs args)
 {
 }
Пример #7
0
 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);
Пример #14
0
 private void SeekBarSlider_FocusEngaged(Control sender, FocusEngagedEventArgs args)
 {
     NowVideoPositionChanging = true;
 }
Пример #15
0
 private void Container_FocusEngaged(Control sender, FocusEngagedEventArgs args)
 {
     Debug.WriteLine("focus engagad: " + args.OriginalSource.ToString());
 }
Пример #16
0
 private void WebAddressText_FocusEngaged(Control sender, FocusEngagedEventArgs args)
 {
     WebAddressText.IsSuggestionListOpen = true;
 }
Пример #17
0
 private void NameBox_FocusEngaged(Control sender, FocusEngagedEventArgs args)
 {
 }