Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Nice to have] Multi Window Support #42

Open
1 task done
russkyc opened this issue Jul 25, 2024 · 2 comments
Open
1 task done

[Nice to have] Multi Window Support #42

russkyc opened this issue Jul 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@russkyc
Copy link

russkyc commented Jul 25, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

No

Describe the solution you'd like

Currently the BlazorDesktop platform runs on a single window, understandably so. For some advanced cases, it might be useful to have multi window support. Maybe having an extension to the NavigationManager or having something like an IWindowManager service where it will also handle the main window as well as managing other windows, this might be a great addition in the future.

@inject NavigationManager Navigation
@inject IWindowManager WindowManager

@code
{

    void OnOpenInNewWindow()
    {
        Navigation.NavigateToInNewWindow("/products");
    }

    void OnOpenNewWindow()
    {
        WindowManager.Create("window-identifier");
        var window = WindowManager.GetWindow("window-identifier");
        window.NavigateTo("/products");
    }
    
}

Additional context

No response

@russkyc russkyc added the enhancement New feature or request label Jul 25, 2024
@AndrewBabbitt97
Copy link
Collaborator

This has been something I have wanted to do for a while, and have known there would be some who want or need this. I just haven't had the time / need to work on it yet. I do have a project using this that could see some benefit from this, however its just not needed at this current moment.

Most of the work & patches lately have been focused on bug fixes and gaps from initial releases.

@russkyc
Copy link
Author

russkyc commented Jul 30, 2024

Happy to say that everything else have been smooth, I'll try to play around and see if I can do a contribution for this if time allows. Thanks for working on this package!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants