CoreApplicationViewTitleBar.LayoutMetricsChanged 이벤트

정의

제목 표시줄이 크기 변경에 응답해야 할 때 발생합니다. 이 이벤트의 가장 일반적인 트리거는 앱 창이 다른 DPI가 있는 화면으로 이동하는 경우입니다. 이 이벤트를 사용하여 제목 표시줄의 크기에 따라 UI 요소의 위치를 확인하고 업데이트할 수 있습니다.

// Register
event_token LayoutMetricsChanged(TypedEventHandler<CoreApplicationViewTitleBar, IInspectable const&> const& handler) const;

// Revoke with event_token
void LayoutMetricsChanged(event_token const* cookie) const;

// Revoke with event_revoker
CoreApplicationViewTitleBar::LayoutMetricsChanged_revoker LayoutMetricsChanged(auto_revoke_t, TypedEventHandler<CoreApplicationViewTitleBar, IInspectable const&> const& handler) const;
public event TypedEventHandler<CoreApplicationViewTitleBar,object> LayoutMetricsChanged;
function onLayoutMetricsChanged(eventArgs) { /* Your code */ }
coreApplicationViewTitleBar.addEventListener("layoutmetricschanged", onLayoutMetricsChanged);
coreApplicationViewTitleBar.removeEventListener("layoutmetricschanged", onLayoutMetricsChanged);
- or -
coreApplicationViewTitleBar.onlayoutmetricschanged = onLayoutMetricsChanged;
Public Custom Event LayoutMetricsChanged As TypedEventHandler(Of CoreApplicationViewTitleBar, Object) 

이벤트 유형

적용 대상