Skip to content

Commit 69a6cf8

Browse files
CopilotPureWeen
andcommitted
Address PR feedback: Remove Windows section, remove reading insets section, fix migration example
Co-authored-by: PureWeen <[email protected]>
1 parent dee0080 commit 69a6cf8

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

docs/user-interface/safe-area.md

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -192,28 +192,6 @@ On Android:
192192
- The `SoftInput` region includes the soft keyboard
193193
- Behavior can vary based on edge-to-edge display settings and Android version
194194

195-
### Windows
196-
197-
On Windows:
198-
199-
- Safe area insets typically include the title bar
200-
- The `SoftInput` region includes the on-screen keyboard when visible
201-
- Safe areas are generally less prominent but still respected
202-
203-
## Reading safe area insets
204-
205-
To read the current safe area insets on iOS at runtime, use the iOS-specific configuration API:
206-
207-
```csharp
208-
using Microsoft.Maui.Controls.PlatformConfiguration;
209-
using Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;
210-
211-
var insets = On<iOS>().SafeAreaInsets(); // Returns Microsoft.Maui.Thickness
212-
```
213-
214-
> [!TIP]
215-
> Safe area insets can change at runtime due to device rotation, status bar visibility changes, or keyboard appearance. Your layout should respond automatically to these changes.
216-
217195
## Best practices
218196

219197
1. **Choose the right value for your scenario**:
@@ -260,7 +238,7 @@ The iOS-specific `Page.UseSafeArea` property still works but is considered legac
260238
**New approach (.NET 10+):**
261239

262240
```xaml
263-
<ContentPage SafeAreaEdges="All">
241+
<ContentPage SafeAreaEdges="Container">
264242
<!-- Content -->
265243
</ContentPage>
266244
```

0 commit comments

Comments
 (0)