Skip to content

Add webbrowser dialog #10367

@PieterjanDeClippel

Description

@PieterjanDeClippel

Background and motivation

image

Code repository

API Proposal

namespace System.Xxx;

public interface IWebBrowserDiscovery {
    Task<IEnumerable<WebBrowser>> GetInstalledBrowsers();
    Task<WebBrowser> GetDefaultBrowser(EProtocolType protocol); // http, https, ftp, mailto, webcal
    Task<WebBrowser> GetDefaultBrowser(string fileType); // html, htm, xml, pdf, ...
}

internal class WebBrowserDiscovery {}

API Usage

public class TestModel {
    public TestModel(IWebBrowserDiscovery webBrowserDiscovery) {}

    public async Task Load() {
        var browsers = await webBrowserDiscovery.GetInstaledBrowsers();
    }
}

Alternative Designs

No response

Risks

No response

Will this feature affect UI controls?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-suggestion(1) Early API idea and discussion, it is NOT ready for implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions