Compartilhar via


Page.SetToolbarPlacement Method

Definition

Overloads

SetToolbarPlacement(BindableObject, ToolbarPlacement)

Sets a value that controls the placement of the toolbar.

SetToolbarPlacement(IPlatformElementConfiguration<Windows,Page>, ToolbarPlacement)

Sets a value that controls the placement of the toolbar.

SetToolbarPlacement(BindableObject, ToolbarPlacement)

Source:
Page.cs
Source:
Page.cs

Sets a value that controls the placement of the toolbar.

public:
 static void SetToolbarPlacement(Microsoft::Maui::Controls::BindableObject ^ element, Microsoft::Maui::Controls::PlatformConfiguration::WindowsSpecific::ToolbarPlacement toolbarPlacement);
public static void SetToolbarPlacement (Microsoft.Maui.Controls.BindableObject element, Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific.ToolbarPlacement toolbarPlacement);
static member SetToolbarPlacement : Microsoft.Maui.Controls.BindableObject * Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific.ToolbarPlacement -> unit
Public Sub SetToolbarPlacement (element As BindableObject, toolbarPlacement As ToolbarPlacement)

Parameters

element
BindableObject

The platform specific element on which to perform the operation.

toolbarPlacement
ToolbarPlacement

The new toolbar placement.

Applies to

SetToolbarPlacement(IPlatformElementConfiguration<Windows,Page>, ToolbarPlacement)

Source:
Page.cs
Source:
Page.cs

Sets a value that controls the placement of the toolbar.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Windows ^, Microsoft::Maui::Controls::Page ^> ^ SetToolbarPlacement(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Windows ^, Microsoft::Maui::Controls::Page ^> ^ config, Microsoft::Maui::Controls::PlatformConfiguration::WindowsSpecific::ToolbarPlacement value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows,Microsoft.Maui.Controls.Page> SetToolbarPlacement (this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows,Microsoft.Maui.Controls.Page> config, Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific.ToolbarPlacement value);
static member SetToolbarPlacement : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows, Microsoft.Maui.Controls.Page> * Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific.ToolbarPlacement -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows, Microsoft.Maui.Controls.Page>
<Extension()>
Public Function SetToolbarPlacement (config As IPlatformElementConfiguration(Of Windows, Page), value As ToolbarPlacement) As IPlatformElementConfiguration(Of Windows, Page)

Parameters

config
IPlatformElementConfiguration<Windows,Page>

The platform specific configuration that contains the element on which to perform the operation.

value
ToolbarPlacement

The new property value to assign.

Returns

The updated configuration object on which developers can make successive method calls.

Applies to