Shell.SetBackButtonBehavior(BindableObject, BackButtonBehavior) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the back button behavior when the given obj
is presented.
public:
static void SetBackButtonBehavior(Microsoft::Maui::Controls::BindableObject ^ obj, Microsoft::Maui::Controls::BackButtonBehavior ^ behavior);
public static void SetBackButtonBehavior (Microsoft.Maui.Controls.BindableObject obj, Microsoft.Maui.Controls.BackButtonBehavior behavior);
static member SetBackButtonBehavior : Microsoft.Maui.Controls.BindableObject * Microsoft.Maui.Controls.BackButtonBehavior -> unit
Public Shared Sub SetBackButtonBehavior (obj As BindableObject, behavior As BackButtonBehavior)
Parameters
- obj
- BindableObject
The page that dictates the Shell's back button behavior when active.
- behavior
- BackButtonBehavior
The back button behavior.
Remarks
If the obj
is not a page, this property won't do anything.
Applies to
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk