Page.SetPrefersStatusBarHidden 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.
Overloads
SetPrefersStatusBarHidden(BindableObject, StatusBarHiddenMode) |
Sets a value that controls whether it is preferred that the status bar is shown, hidden, or relies on the system default. |
SetPrefersStatusBarHidden(IPlatformElementConfiguration<iOS,Page>, StatusBarHiddenMode) |
Sets a value that controls whether it is preferred that the status bar is shown, hidden, or relies on the system default. |
SetPrefersStatusBarHidden(BindableObject, StatusBarHiddenMode)
- Source:
- Page.cs
- Source:
- Page.cs
Sets a value that controls whether it is preferred that the status bar is shown, hidden, or relies on the system default.
public:
static void SetPrefersStatusBarHidden(Microsoft::Maui::Controls::BindableObject ^ element, Microsoft::Maui::Controls::PlatformConfiguration::iOSSpecific::StatusBarHiddenMode value);
public static void SetPrefersStatusBarHidden (Microsoft.Maui.Controls.BindableObject element, Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific.StatusBarHiddenMode value);
static member SetPrefersStatusBarHidden : Microsoft.Maui.Controls.BindableObject * Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific.StatusBarHiddenMode -> unit
Public Sub SetPrefersStatusBarHidden (element As BindableObject, value As StatusBarHiddenMode)
Parameters
- element
- BindableObject
The platform specific element on which to perform the operation.
- value
- StatusBarHiddenMode
The new property value to assign.
Applies to
SetPrefersStatusBarHidden(IPlatformElementConfiguration<iOS,Page>, StatusBarHiddenMode)
- Source:
- Page.cs
- Source:
- Page.cs
Sets a value that controls whether it is preferred that the status bar is shown, hidden, or relies on the system default.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::iOS ^, Microsoft::Maui::Controls::Page ^> ^ SetPrefersStatusBarHidden(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::iOS ^, Microsoft::Maui::Controls::Page ^> ^ config, Microsoft::Maui::Controls::PlatformConfiguration::iOSSpecific::StatusBarHiddenMode value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS,Microsoft.Maui.Controls.Page> SetPrefersStatusBarHidden (this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS,Microsoft.Maui.Controls.Page> config, Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific.StatusBarHiddenMode value);
static member SetPrefersStatusBarHidden : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS, Microsoft.Maui.Controls.Page> * Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific.StatusBarHiddenMode -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS, Microsoft.Maui.Controls.Page>
<Extension()>
Public Function SetPrefersStatusBarHidden (config As IPlatformElementConfiguration(Of iOS, Page), value As StatusBarHiddenMode) As IPlatformElementConfiguration(Of iOS, Page)
Parameters
- config
- IPlatformElementConfiguration<iOS,Page>
The platform specific configuration that contains the element on which to perform the operation.
- value
- StatusBarHiddenMode
The new property value to assign.
Returns
The updated configuration object on which developers can make successive method calls.