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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.