TraversalRequest 클래스

정의

포커스를 다른 컨트롤로 이동하는 요청을 나타냅니다.

public ref class TraversalRequest
[System.Serializable]
public class TraversalRequest
public class TraversalRequest
[<System.Serializable>]
type TraversalRequest = class
type TraversalRequest = class
Public Class TraversalRequest
상속
TraversalRequest
특성

예제

다음 예제에서는 호출에 TraversalRequest 대한 입력으로 인스턴스를 FrameworkElement.MoveFocus 만듭니다.

// Creating a FocusNavigationDirection object and setting it to a
// local field that contains the direction selected.
FocusNavigationDirection focusDirection = _focusMoveValue;

// MoveFocus takes a TraveralReqest as its argument.
TraversalRequest request = new TraversalRequest(focusDirection);

// Gets the element with keyboard focus.
UIElement elementWithFocus = Keyboard.FocusedElement as UIElement;

// Change keyboard focus.
if (elementWithFocus != null)
{
    elementWithFocus.MoveFocus(request);
}
' Creating a FocusNavigationDirection object and setting it to a
' local field that contains the direction selected.
Dim focusDirection As FocusNavigationDirection = _focusMoveValue

' MoveFocus takes a TraveralReqest as its argument.
Dim request As New TraversalRequest(focusDirection)

' Gets the element with keyboard focus.
Dim elementWithFocus As UIElement = TryCast(Keyboard.FocusedElement, UIElement)

' Change keyboard focus.
If elementWithFocus IsNot Nothing Then
    elementWithFocus.MoveFocus(request)
End If

설명

이 클래스는 메서드에 대한 UIElement.MoveFocus 입력 매개 변수로 사용됩니다. MoveFocus 메서드에는 보다 실용적인 구현(FrameworkElement.MoveFocus)과 ContentElementFrameworkContentElement 병렬 구현을 제공하는 WPF 프레임워크 수준 재정의가 있습니다. 일반적으로 포커스를 다른 요소로 이동하도록 요청할 때 포커스 동작을 사용자 지정하기 위해 속성을 TraversalRequest 설정합니다.

이 클래스는 다음 메서드에 대한 입력 매개 변수로도 사용됩니다.

생성자

Name Description
TraversalRequest(FocusNavigationDirection)

TraversalRequest 클래스의 새 인스턴스를 초기화합니다.

속성

Name Description
FocusNavigationDirection

순회 방향을 가져옵니다.

Wrapped

포커스 순회가 포커스를 가질 수 있는 자식 요소의 끝에 도달했는지 여부를 나타내는 값을 가져오거나 설정합니다.

메서드

Name Description
Equals(Object)

지정된 개체가 현재 개체와 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 사용됩니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상

추가 정보