AutomationProperties.GetFlowsTo(DependencyObject) 메서드

정의

지정된 자동화 요소 다음에 읽기 순서를 제안하는 자동화 요소 목록을 가져옵니다.

public:
 static IVector<DependencyObject ^> ^ GetFlowsTo(DependencyObject ^ element);
 static IVector<DependencyObject> GetFlowsTo(DependencyObject const& element);
public static IList<DependencyObject> GetFlowsTo(DependencyObject element);
function getFlowsTo(element)
Public Shared Function GetFlowsTo (element As DependencyObject) As IList(Of DependencyObject)

매개 변수

element
DependencyObject

다음 읽기 순서 요소를 가져올 요소입니다.

반환

요소 매개 변수로 지정된 automation 요소 뒤의 읽기 순서를 제안하는 자동화 요소 목록입니다.

Windows 요구 사항

디바이스 패밀리
Windows 10 Anniversary Edition (10.0.14393.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v3.0에서 도입되었습니다.)

예제

<StackPanel>
    <Button x:Name="first">First</Button>
    <Button x:Name="third">Third</Button>
    <Button x:Name="second">Second</Button>
    <Button x:Name="fourth">Fourth</Button>
</StackPanel>
public sealed partial class MainPage : Page
{
    public MainPage()
    {
        this.InitializeComponent();

        // Override the default flow for next/previous items in 
        // UI Automation to differ from the sequence of items 
        // declared in markup
        FlowBetween(first, second);
        FlowBetween(second, third);
        FlowBetween(third, fourth);
    }

    public void FlowBetween(UIElement fromElement, UIElement toElement)
    {
        // Set up the flow as bi-directional so that moving next/previous is
        // consistent.
        var flowsToList = AutomationProperties.GetFlowsTo(fromElement);
        var flowsFromList = AutomationProperties.GetFlowsFrom(toElement);

        flowsToList.Add(toElement);
        flowsFromList.Add(fromElement);
    }
}

설명

목록을 가져옵니다. 그런 다음 Add 메서드를 호출하여 새 요소를 추가합니다.

중요

흐름을 수정할 때 사용자가 키보드만 사용하는 경우 이스케이프할 수 없는 탐색 루프에 갇혀 있는 상황을 만들지 않도록 주의해야 합니다.

적용 대상