NavigationPage.SetIsNavigationBarTranslucent 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
| Name | Description |
|---|---|
| SetIsNavigationBarTranslucent(BindableObject, Boolean) |
Obsolete.
Sets whether the navigation bar is translucent on iOS. |
| SetIsNavigationBarTranslucent(IPlatformElementConfiguration<iOS,NavigationPage>, Boolean) |
Obsolete.
Sets whether the navigation bar is translucent on iOS. |
SetIsNavigationBarTranslucent(BindableObject, Boolean)
- Source:
- NavigationPage.cs
- Source:
- NavigationPage.cs
- Source:
- NavigationPage.cs
- Source:
- NavigationPage.cs
Caution
IsNavigationBarTranslucent is deprecated. The Translucent will be enabled by default by setting the BarBackgroundColor to a transparent color.
Sets whether the navigation bar is translucent on iOS.
public:
static void SetIsNavigationBarTranslucent(Microsoft::Maui::Controls::BindableObject ^ element, bool value);
[System.Obsolete("IsNavigationBarTranslucent is deprecated. The Translucent will be enabled by default by setting the BarBackgroundColor to a transparent color.")]
public static void SetIsNavigationBarTranslucent(Microsoft.Maui.Controls.BindableObject element, bool value);
public static void SetIsNavigationBarTranslucent(Microsoft.Maui.Controls.BindableObject element, bool value);
[<System.Obsolete("IsNavigationBarTranslucent is deprecated. The Translucent will be enabled by default by setting the BarBackgroundColor to a transparent color.")>]
static member SetIsNavigationBarTranslucent : Microsoft.Maui.Controls.BindableObject * bool -> unit
static member SetIsNavigationBarTranslucent : Microsoft.Maui.Controls.BindableObject * bool -> unit
Public Sub SetIsNavigationBarTranslucent (element As BindableObject, value As Boolean)
Parameters
- element
- BindableObject
The element to set the value on.
- value
- Boolean
true for translucent; otherwise, false.
- Attributes
Applies to
SetIsNavigationBarTranslucent(IPlatformElementConfiguration<iOS,NavigationPage>, Boolean)
- Source:
- NavigationPage.cs
- Source:
- NavigationPage.cs
- Source:
- NavigationPage.cs
- Source:
- NavigationPage.cs
Caution
IsNavigationBarTranslucent is deprecated. The Translucent will be enabled by default by setting the BarBackgroundColor to a transparent color.
Sets whether the navigation bar is translucent on iOS.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::iOS ^, Microsoft::Maui::Controls::NavigationPage ^> ^ SetIsNavigationBarTranslucent(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::iOS ^, Microsoft::Maui::Controls::NavigationPage ^> ^ config, bool value);
[System.Obsolete("IsNavigationBarTranslucent is deprecated. The Translucent will be enabled by default by setting the BarBackgroundColor to a transparent color.")]
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS,Microsoft.Maui.Controls.NavigationPage> SetIsNavigationBarTranslucent(this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS,Microsoft.Maui.Controls.NavigationPage> config, bool value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS,Microsoft.Maui.Controls.NavigationPage> SetIsNavigationBarTranslucent(this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS,Microsoft.Maui.Controls.NavigationPage> config, bool value);
[<System.Obsolete("IsNavigationBarTranslucent is deprecated. The Translucent will be enabled by default by setting the BarBackgroundColor to a transparent color.")>]
static member SetIsNavigationBarTranslucent : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS, Microsoft.Maui.Controls.NavigationPage> * bool -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS, Microsoft.Maui.Controls.NavigationPage>
static member SetIsNavigationBarTranslucent : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS, Microsoft.Maui.Controls.NavigationPage> * bool -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.iOS, Microsoft.Maui.Controls.NavigationPage>
<Extension()>
Public Function SetIsNavigationBarTranslucent (config As IPlatformElementConfiguration(Of iOS, NavigationPage), value As Boolean) As IPlatformElementConfiguration(Of iOS, NavigationPage)
Parameters
The platform configuration.
- value
- Boolean
true for translucent; otherwise, false.
Returns
The updated platform configuration.
- Attributes