Fix inverted 'IgnoreSafeArea' value (#2065)
* Fix inverted 'IgnoreSafeArea' value The IgnoreSafeArea property needs to be set to 'true' to have any effect. The default is 'false', in which case the safe area is respected. * Update page-safe-area-layout.md --------- Co-authored-by: David Britch <davidbritch@users.noreply.github.com>
This commit is contained in:
Родитель
6cdedbd1a5
Коммит
15a3cdfe72
|
@ -32,4 +32,4 @@ On<iOS>().SetUseSafeArea(false);
|
|||
The `Page.On<iOS>` method specifies that this platform-specific will only run on iOS. The `Page.SetUseSafeArea` method, in the `Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific` namespace, controls whether the safe area layout guide is disabled.
|
||||
|
||||
> [!NOTE]
|
||||
> The <xref:Microsoft.Maui.Controls.Layout> class defines a <xref:Microsoft.Maui.Controls.Layout.IgnoreSafeArea> property that ensures that content is positioned on an area of the screen that is safe for all iOS devices. This property can be set to `false` on any layout class, such as a <xref:Microsoft.Maui.Controls.Grid> or <Microsoft.Maui.Controls.StackLayout>, to perform the equivalent of this platform-specific.
|
||||
> The <xref:Microsoft.Maui.Controls.Layout> class defines a <xref:Microsoft.Maui.Controls.Layout.IgnoreSafeArea> property that ensures that content is positioned on an area of the screen that is safe for all iOS devices. This property can be set to `true` on any layout class, such as a <xref:Microsoft.Maui.Controls.Grid> or <xref:Microsoft.Maui.Controls.StackLayout>, to perform the equivalent of this platform-specific.
|
||||
|
|
Загрузка…
Ссылка в новой задаче