How to implement multitab application in Avalonia? #18600
SwiftExtender
started this conversation in
General
Replies: 1 comment
-
It sounds like you want a template selector? There is an example here on how to do it: Otherwise, I think I need you to elaborate a bit more because I am not sure I understand the problem. If the problem is the shared presenter, then that's not a problem. The tab control automatically switches what content is displayed based on the active tab. You can just not define the template in the tab control and define it elsewhere (EG in your app.axaml), and it should find it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I trying to create multitab application. I think that i must use TabControl with custom command which creates/deletes tabs and ItemsSource of this TabControl must contain view->view model of custom control which contains all UI elements. But i stuck cause its very hard to implement because i only got many tab headers but with one content presenter for all tab headers (for example two tab headers but only one content presenter), result on the screenshots). What is the other ways to implement multitab or how to get rid of this problem?
View code:
Beta Was this translation helpful? Give feedback.
All reactions