예제 #1
0
        /// <summary>
        /// The can move focus.
        /// </summary>
        /// <param name="direction"> The direction. </param>
        /// <param name="reachedMax"> The reached max. </param>
        /// <returns> The <see cref="bool"/>. </returns>
        private bool CanMoveFocus(FocusNavigationDirection direction, bool reachedMax)
        {
            QueryMoveFocusEventArgs e = new QueryMoveFocusEventArgs(direction, reachedMax);

            this.RaiseEvent(e);
            return(e.CanMoveFocus);
        }
예제 #2
0
 /// <summary>
 /// The can move focus.
 /// </summary>
 /// <param name="direction"> The direction. </param>
 /// <param name="reachedMax"> The reached max. </param>
 /// <returns> The <see cref="bool"/>. </returns>
 private bool CanMoveFocus(FocusNavigationDirection direction, bool reachedMax)
 {
     QueryMoveFocusEventArgs e = new QueryMoveFocusEventArgs(direction, reachedMax);
     this.RaiseEvent(e);
     return e.CanMoveFocus;
 }