User (Old forums)MemberJanuary 20, 2016 at 7:55 amPost count: 23064
I am trying to master the AvalonDock the MVVM way.
I am experimenting a bit with the example on codeplex
( source code -> Version 2 ->
I manage to make my own document and anchorable. But
in the example they all get docked in the RootPanel.
What if I want to dock a anchorable in a Side Panel. I
presume I have to add something to the LayoutItemTemplateSelector but I can not
figure out what.
Please some advice.
Imported from legacy forums. Posted by Rob (had 52 views)Fawzi [Xceed]MemberJanuary 20, 2016 at 2:14 pmPost count: 722
To add a LayoutAchorable on a side panel, add a LayoutAnchorSide on the LayoutRoot.XXXSide. ex:
<TextBlock Text=”Agenda Content”
<TextBlock Text=”Contacts Content”
You can see the complete sample in the Demo App, available here : http://xceed.com/WPF_Toolkit_Demo.html. Look for sample “Others/AvalonDock”.
Imported from legacy forums. Posted by Fawzi [Xceed] (had 6 views)User (Old forums)MemberJanuary 21, 2016 at 1:47 pmPost count: 23064
I am still struggling with this.
I have merged your code in my MainWindow AXML file to add a Soldo window on the left side
Added a new ViewModel named it SaldoViewModel.
added a new contentId to my viewmodel and axml file named it Saldo.
Changed the code in my WorkSpace File to add the ViewModel to the collection of ToolViewModels.
But still my Saldo window shows in the same dock as the info window.
the whole problem is that the Avalondock is somehow tying the viewmodels to the views and I do not understand how this works.
I did add the files with this post as txt files. is it possible you check what I do wrong?
Imported from legacy forums. Posted by Rob (had 11 views)Fawzi [Xceed]MemberJanuary 22, 2016 at 9:56 amPost count: 722
We will need a working sample in order to test and view what is wrong. Also, can you tell me what do you mean by “my Saldo window shows in the same dock as the info window”. What is the info Window ? What exactly are you trying to do ?
Can you send us screenshots showing what is wrong and what you would like with the sample ?
Imported from legacy forums. Posted by Fawzi [Xceed] (had 17 views)
- You must be logged in to reply to this topic.