Example #1
0
        /// <inheritdoc/>
        protected override void OnGotFocus(GotFocusEventArgs e)
        {
            base.OnGotFocus(e);

            if (e.NavigationMethod == NavigationMethod.Directional)
            {
                e.Handled = UpdateSelectionFromEventSource(e.Source);
            }
        }
Example #2
0
 /// <summary>
 /// Called before the <see cref="GotFocus"/> event occurs.
 /// </summary>
 /// <param name="e">The event args.</param>
 protected virtual void OnGotFocus(GotFocusEventArgs e)
 {
     IsFocused = e.Source == this;
 }
Example #3
0
        /// <inheritdoc/>
        protected override void OnGotFocus(GotFocusEventArgs e)
        {
            base.OnGotFocus(e);

            if (e.NavigationMethod == NavigationMethod.Directional)
            {
                e.Handled = UpdateSelectionFromEventSource(
                    e.Source,
                    true,
                    (e.InputModifiers & InputModifiers.Shift) != 0);
            }
        }
Example #4
0
 protected override void OnGotFocus(GotFocusEventArgs e)
 {
     TextView.ShowCaret();
 }
Example #5
0
 /// <summary>
 /// Called before the <see cref="GotFocus"/> event occurs.
 /// </summary>
 /// <param name="e">The event args.</param>
 protected virtual void OnGotFocus(GotFocusEventArgs e)
 {
     IsFocused = e.Source == this;
 }
Example #6
0
 /// <summary>
 /// Called when the <see cref="MenuItem"/> recieves focus.
 /// </summary>
 /// <param name="e">The event args.</param>
 protected override void OnGotFocus(GotFocusEventArgs e)
 {
     base.OnGotFocus(e);
     IsSelected = true;
 }