Page.SetPrefersHomeIndicatorAutoHidden 方法

定义

重载

SetPrefersHomeIndicatorAutoHidden(BindableObject, Boolean)

设置一个值,该值指示在返回主屏幕时视觉指示器是否应隐藏。

SetPrefersHomeIndicatorAutoHidden(IPlatformElementConfiguration<iOS,Page>, Boolean)

设置一个布尔值,该值指示是否允许隐藏返回主屏幕的可视指示器。

SetPrefersHomeIndicatorAutoHidden(BindableObject, Boolean)

Source:
Page.cs
Source:
Page.cs

设置一个值,该值指示在返回主屏幕时视觉指示器是否应隐藏。

public:
 static void SetPrefersHomeIndicatorAutoHidden(Microsoft::Maui::Controls::BindableObject ^ element, bool value);
public static void SetPrefersHomeIndicatorAutoHidden (Microsoft.Maui.Controls.BindableObject element, bool value);
static member SetPrefersHomeIndicatorAutoHidden : Microsoft.Maui.Controls.BindableObject * bool -> unit
Public Sub SetPrefersHomeIndicatorAutoHidden (element As BindableObject, value As Boolean)

参数

element
BindableObject

一个页面,占整个屏幕的 VisualElement。

value
Boolean

true 如果隐藏主指示器,则为 ;否则,为 false.

适用于

SetPrefersHomeIndicatorAutoHidden(IPlatformElementConfiguration<iOS,Page>, Boolean)

Source:
Page.cs
Source:
Page.cs

设置一个布尔值,该值指示是否允许隐藏返回主屏幕的可视指示器。

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

参数

config
IPlatformElementConfiguration<iOS,Page>

特定于平台的配置,包含要对其执行操作的元素。

value
Boolean

true 如果隐藏主指示器,则为 ;否则,为 false.

返回

更新的配置对象,开发人员可对其进行连续的方法调用。

适用于