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:
Yves 2024-02-16 15:44:10 +01:00 коммит произвёл GitHub
Родитель 6cdedbd1a5
Коммит 15a3cdfe72
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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.