IToolbarDrawerToggleVisible.DrawerToggleVisible Property
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.
Gets a value that indicates whether the drawer (flyout) toggle affordance should be displayed in the navigation slot of the toolbar.
public:
property bool DrawerToggleVisible { bool get(); };
public bool DrawerToggleVisible { get; }
member this.DrawerToggleVisible : bool
Public ReadOnly Property DrawerToggleVisible As Boolean
Property Value
Remarks
The value is computed and owned by the cross-platform layer (for example Shell, or a NavigationPage hosted inside a FlyoutPage) from the current flyout behavior and navigation stack, which is why this contract is read-only. Platform backends should render it, not compute or overwrite it.
This property and BackButtonVisible are not mutually exclusive: on Windows both can be true at the same time. They share a single navigation slot and BackButtonVisible takes precedence when rendering, so a backend should check the back button first and only fall through to the drawer toggle.
Changes raise a handler update keyed on "DrawerToggleVisible", so a backend maps it like any other toolbar property.