MenuFlyout.ShowAt(UIElement, Point) 메서드

정의

지정된 대상 요소와 관련하여 지정된 오프셋에 배치된 플라이아웃을 표시합니다.

public:
 virtual void ShowAt(UIElement ^ targetElement, Point point) = ShowAt;
void ShowAt(UIElement const& targetElement, Point const& point);
public void ShowAt(UIElement targetElement, Point point);
function showAt(targetElement, point)
Public Sub ShowAt (targetElement As UIElement, point As Point)

매개 변수

targetElement
UIElement

플라이아웃의 배치 대상으로 사용할 요소입니다.

point
Point

지정된 대상 요소에서 플라이아웃을 오프셋할 지점입니다.

예제

UI 요소를 기준으로 메뉴를 배치하려면 요소와 오프셋을 지정합니다.

MenuFlyout.ShowAt(element, new Point(0,0));

애플리케이션 창을 기준으로 메뉴를 배치하려면 targetElement 매개 변수를 null로 설정합니다.

MenuFlyout.ShowAt(null, new Point(x, y));

설명

MenuFlyout을 표시하기 위해 이 메서드를 호출하면 가능하고 필요한 경우 애플리케이션 창 외부로 자동으로 렌더링됩니다.

FlowDirection과 같은 일부 속성이 예상대로 흐르지 않을 수 있습니다. 올바른 흐름을 보장하려면 MenuFlyoutPresenter MenuFlyoutPresenter 를 먼저 표시하기 전에 MenuFlyoutPresenter를 설정해야 합니다.

적용 대상

추가 정보