다음을 통해 공유


HardwareButtons.BackPressed 이벤트

정의

사용자가 하드웨어 뒤로 단추를 누를 때 발생합니다.

// Register
static event_token BackPressed(EventHandler<BackPressedEventArgs> const& handler) const;

// Revoke with event_token
static void BackPressed(event_token const* cookie) const;

// Revoke with event_revoker
static HardwareButtons::BackPressed_revoker BackPressed(auto_revoke_t, EventHandler<BackPressedEventArgs> const& handler) const;
public static event System.EventHandler<BackPressedEventArgs> BackPressed;
function onBackPressed(eventArgs) { /* Your code */ }
Windows.Phone.UI.Input.HardwareButtons.addEventListener("backpressed", onBackPressed);
Windows.Phone.UI.Input.HardwareButtons.removeEventListener("backpressed", onBackPressed);
- or -
Windows.Phone.UI.Input.HardwareButtons.onbackpressed = onBackPressed;
Public Shared Custom Event BackPressed As EventHandler(Of BackPressedEventArgs) 

이벤트 유형

적용 대상