question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It occurred to me - why isn’t there some sort of level in the UI tree above Window? This would make synchronizing multiple windows a lot less trouble. Something like

App [
    Window [ ]
    Window [ ]
    ...
]

Alternately, the App level would have a single child which would be some collection of Windows. It might also make sense to instead of App call the root Context, since maybe there’s a reason why the developer would want more than one of them.

My use case is that I want a UI that’s friendly with multiple monitors. Something like Visual Studio’s dock system seems like a good place to start, and it would be nice to be able to easily break toolbars and such off into separate windows without having to mess with juggling state between multiple models and update paths.

Are there limitations in Avalonia itself which would make this annoying to implement? Maybe things to do with threading?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
AngelMunozcommented, Jan 17, 2021

@keldor314 I have a sample for you that might work https://github.com/AngelMunoz/MultiWindow in that example I open each window as a Dialog but you can new the windows and show them/hide them based on the commands/subscriptions you may have based on that sample

I don’t think (given the nature of Avalonia itself, Avalonia doesn’t have a window tree either AFAIK) this is something possible for the moment

Please check the sample if you’re interested in this and let me know if there are some questions to that approach I’ll close this in the meanwhile

0reactions
AngelMunozcommented, Nov 25, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Get more done with multitasking in Windows
Multiple desktops are great for keeping unrelated, ongoing projects organized, or for quickly switching desktops before a meeting. To create multiple desktops:.
Read more >
Windows 10: Tips for Managing Multiple Windows
Once you've created multiple desktops, you can use Task view to switch between them. You can also move windows between desktops. To do...
Read more >
Multi-window support
Quickly bring your app to life with less code, using a modern declarative approach to UI, and the simplicity of Kotlin. ... Start...
Read more >
How to use multiple desktops in Windows 10
How to use multiple desktops in Windows 10 ; Click New Desktop. (It's located in the top left corner of your screen.) Click...
Read more >
Multitask with windows & tabs - Chromebook Help
Press and hold Alt, then tap Tab until you get to the window you want to open. See two windows at the same...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found