Implemented Essentials Launcher and Browser#172
Open
jsuarezruiz wants to merge 6 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Avalonia-based implementations of MAUI Essentials Launcher and Browser services (desktop + WASM), wires them into the Essentials builder, and provides ControlGallery samples plus basic unit tests.
Changes:
- Register
AvaloniaLauncherandAvaloniaBrowserviaUseAvaloniaEssentials. - Implement desktop (
Process.Start+UseShellExecute) and browser/WASM (window.open()via JSImport) backends. - Add ControlGallery pages and basic tests for the new services.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/Avalonia.Controls.Maui.Essentials.Tests/AvaloniaLauncherTests.cs | Adds scheme support and null request tests for AvaloniaLauncher. |
| tests/Avalonia.Controls.Maui.Essentials.Tests/AvaloniaBrowserTests.cs | Adds a basic construction test for AvaloniaBrowser. |
| src/Avalonia.Controls.Maui.Essentials/MauiEssentialsBuilderExtensions.cs | Registers Browser/Launcher defaults in the builder extension. |
| src/Avalonia.Controls.Maui.Essentials/Launcher/LauncherInterop.Browser.cs | Adds JSImport binding for window.open. |
| src/Avalonia.Controls.Maui.Essentials/Launcher/AvaloniaLauncher.cs | Introduces the cross-platform ILauncher implementation + partial platform hooks. |
| src/Avalonia.Controls.Maui.Essentials/Launcher/AvaloniaLauncher.Default.cs | Desktop launcher implementation using Process.Start. |
| src/Avalonia.Controls.Maui.Essentials/Launcher/AvaloniaLauncher.Browser.cs | WASM launcher implementation using JS interop. |
| src/Avalonia.Controls.Maui.Essentials/Browser/AvaloniaBrowser.cs | Introduces the cross-platform IBrowser implementation + partial platform hook. |
| src/Avalonia.Controls.Maui.Essentials/Browser/AvaloniaBrowser.Default.cs | Desktop browser implementation using Process.Start. |
| src/Avalonia.Controls.Maui.Essentials/Browser/AvaloniaBrowser.Browser.cs | WASM browser implementation using JS interop. |
| samples/ControlGallery/ControlGallery/Pages/LauncherPage.xaml.cs | Adds Launcher sample UI logic. |
| samples/ControlGallery/ControlGallery/Pages/LauncherPage.xaml | Adds Launcher sample UI layout. |
| samples/ControlGallery/ControlGallery/Pages/BrowserPage.xaml.cs | Adds Browser sample UI logic. |
| samples/ControlGallery/ControlGallery/Pages/BrowserPage.xaml | Adds Browser sample UI layout. |
| samples/ControlGallery/ControlGallery/MainPage.xaml.cs | Adds Browser/Launcher samples to the gallery navigation and list. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
drasticactions
requested changes
Apr 27, 2026
drasticactions
left a comment
Collaborator
There was a problem hiding this comment.
https://docs.avaloniaui.net/docs/services/launcher
Avalonia has launcher functions that can bind these; we don't need to split between platforms here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes:
ILauncher): Opens URIs via the OS default handler. Desktop usesProcess.Startwith UseShellExecute, browser useswindow.open()via [JSImport]. Supports CanOpenAsync, OpenAsync, TryOpenAsync, and OpenAsync(OpenFileRequest).IBrowser): Opens URLs in the system browser.Process.Startresult on desktop,window.open()return on WASM (also detects popup blockers).