Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/user-interface/controls/webview.md
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,10 @@ For more information about configuring a <xref:Microsoft.Maui.Controls.WebView>

## Inspect a WebView on Mac Catalyst

To use Safari developer tools to inspect the contents of a `WebView` on Mac Catalyst requires you to add the `com.apple.security.get-task-allow` key, of type `Boolean`, to the entitlements file of your app for its debug build. For more information about entitlements, see [Entitlements](~/ios/entitlements.md).
To use Safari developer tools to inspect the contents of a <xref:Microsoft.Maui.Controls.WebView> on Mac Catalyst requires you to add the `com.apple.security.get-task-allow` key, of type `Boolean`, to the entitlements file of your app for its debug build. For more information about entitlements, see [Entitlements](~/ios/entitlements.md).

> [!NOTE]
> A .NET MAUI app created using .NET 8 will already contain the `com.apple.security.get-task-allow` entitlement for its debug build on Mac Catalyst.

To add an entitlements file to your .NET MAUI app project, add a new XML file named *Entitlements.Debug.plist* to the *Platforms\\MacCatalyst* folder of your app project. Then add the following XML to the file:

Expand Down
33 changes: 33 additions & 0 deletions docs/user-interface/fonts.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,39 @@ Label label2 = new Label
};
```

::: moniker range=">=net-maui-8.0"

On Android, the following system fonts can be consumed by setting them as the value of the `FontFamily` property:

- monospace
- serif
- sans-serif (or sansserif)
- sans-serif-black (or sansserif-black)
- sans-serif-condensed (or sansserif-condensed)
- sans-serif-condensed-light (or sansserif-condensed-light)
- sans-serif-light (or sansserif-light)
- sans-serif-medium (or sansserif-medium)

For example, the monospace system font can be consumed with the following XAML:

```xaml
<Label Text="Hello .NET MAUI"
FontFamily="monospace" />
```

The equivalent C# code is:

```csharp
// Use font name
Label label1 = new Label
{
Text = "Hello .NET MAUI!",
FontFamily = "monospace"
};
```

::: moniker-end

## Set font attributes

Controls that display text can set the `FontAttributes` property to specify font attributes:
Expand Down
2 changes: 2 additions & 0 deletions docs/whats-new/dotnet-8.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ For information about what's new in .NET 8, see [What's new in .NET 8](/dotnet/c
- The `x:ClassModifier` attribute can be specified on XAML classes, to control the access level for a generated class in an assembly. For more information, see [Class modifiers](~/xaml/class-modifiers.md).
- The <xref:Microsoft.Maui.ApplicationModel.Permissions> class gains the `Bluetooth` permission, which is an Android 12 permission for looking for Bluetooth devices, making the current device discoverable to other Bluetooth devices, and communicating with already-paired Bluetooth devices. For more information, see [Permissions](~/platform-integration/appmodel/permissions.md).
- The <xref:Microsoft.Maui.ApplicationModel.Permissions> class gains the `NearbyWifiDevices` permission, which is an Android 13 permission for accessing nearby WiFi devices. For more information, see [Permissions](~/platform-integration/appmodel/permissions.md).
- Several system fonts can be easily consumed in Android apps. For more information, see [Consume fonts](~/user-interface/fonts.md#consume-fonts).

The following types or members have been deprecated:

Expand All @@ -56,6 +57,7 @@ The following behavior has changed from the previous release:
- Use of the <xref:Microsoft.Maui.Controls.Maps.Map> control from XAML now requires the following `xmlns` namespace declaration: `xmlns:maps="http://schemas.microsoft.com/dotnet/2021/maui/maps"`.
- Image caching is disabled on Android when loading an image from a stream with the [`ImageSource.FromStream`](xref:Microsoft.Maui.Controls.ImageSource.FromStream%2A) method. This is due to the lack of data from which to create a reasonable cache key.
- On iOS, pages automatically scroll when the soft input keyboard would cover a text entry field, so that the field is above the soft input keyboard. The `KeyboardAutoManagerScroll.Disconnect` method, in the `Microsoft.Maui.Platform` namespace, can be called to disable this default behavior. The `KeyboardAutoManagerScroll.Connect` method can be called to re-enable the behavior after it's been disabled.
- The project templates include the `com.apple.security.get-task-allow` entitlement for debug builds on Mac Catalyst, so that you can use Safari developer tools to inspect the contents of a <xref:Microsoft.AspNetCore.Components.WebView.Maui.BlazorWebView> and a <xref:Microsoft.Maui.Controls.WebView> on Mac Catalyst.

<!-- ## Performance

Expand Down