Skip to content

Commit

Permalink
Update windows.md (#2529)
Browse files Browse the repository at this point in the history
* Update windows.md

added additional configuration changes required for multi-window support on dotnet8 and higher

* Update windows.md

* Update windows.md

* Update windows.md

* Update windows.md

---------

Co-authored-by: David Britch <davidbritch@users.noreply.github.com>
  • Loading branch information
Fred-Hudson-CST and davidbritch authored Sep 30, 2024
1 parent 51ba165 commit c055fac
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docs/fundamentals/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,24 @@ Application.Current?.CloseWindow(GetParentWindow());
```

> [!IMPORTANT]
> Multi-window support works on Android and Windows without additional configuration. However, additional configuration is required on iPadOS and Mac Catalyst.
> Multi-window support works on Windows without additional configuration. However, additional configuration is required on Android, iPadOS and Mac Catalyst.
### Android configuration

To use multi-window support on Android, you must change the `MainActivity` launch mode in *Platforms > Android > MainActivity.cs* from `LaunchMode.SingleTop` to `LaunchMode.Multiple`:

```csharp
using Android.App;
using Android.Content.PM;
using Android.OS;

namespace MyMauiApp;

[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.Multiple, ...)]
public class MainActivity : MauiAppCompatActivity
{
}
```

### iPadOS and macOS configuration

Expand Down

0 comments on commit c055fac

Please sign in to comment.