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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.