avalondock

Avalon Dock 2.0 LayoutItemTemplateSelector given ContentPresenter instead of ViewModel

喜夏-厌秋 提交于 2019-11-30 22:44:32
I've been at this for weeks...I am creating a WPF application that uses Avalon Dock 2.0 in the the Main Window. I am trying to use the Docking Manager in a MVVM way, so I have DockingManager.DocumentsSource bound to an ObservableCollection<object> property in my MainViewModel . I also created a custom DataTemplateSelector and bound it to DockingManager.LayoutItemTemplateSelector . The problem I am having: I add a ViewModel to the documents source. My custom DataTemplateSelector.SelectTemplate() is called. The item parameter in SelectTemplate() is a System.Windows.Controls.ContentPresenter

Avalon Dock 2.0 LayoutItemTemplateSelector given ContentPresenter instead of ViewModel

試著忘記壹切 提交于 2019-11-30 17:48:07
问题 I've been at this for weeks...I am creating a WPF application that uses Avalon Dock 2.0 in the the Main Window. I am trying to use the Docking Manager in a MVVM way, so I have DockingManager.DocumentsSource bound to an ObservableCollection<object> property in my MainViewModel . I also created a custom DataTemplateSelector and bound it to DockingManager.LayoutItemTemplateSelector . The problem I am having: I add a ViewModel to the documents source. My custom DataTemplateSelector.SelectTemplate

AvalonDock DockingManager does not load layout

旧街凉风 提交于 2019-11-30 10:05:05
In order to save and load my layout I followed the instructions here , but it didn't work for me. I've got this XAML inside the MainWindow : <StackPanel Orientation="Vertical"> <Button Content="Save" Click="SaveButton_Click"/> <Button Content="Load" Click="LoadButton_Click"/> <ad:DockingManager x:Name="myDM"> <ad:LayoutRoot> <ad:LayoutPanel> <ad:LayoutDocumentPane> <ad:LayoutDocument Title="Document"> <TextBox /> </ad:LayoutDocument> </ad:LayoutDocumentPane> </ad:LayoutPanel> <ad:LayoutRoot.LeftSide> <ad:LayoutAnchorSide> <ad:LayoutAnchorGroup> <ad:LayoutAnchorable Title="Left"> <TextBox/> <

Where can I get themes for WPF controls that resemble the Visual Studio 2010 interface?

倾然丶 夕夏残阳落幕 提交于 2019-11-30 06:38:33
问题 My application is build around AvalonDock, which has quite good Visual Studio 2010 skin (which is much prettier than all the other skins). Now I would like to style the rest of my application to go with it. I'm interested most in following parts: Toolbar - I mostly managed to get the colors right on my own, but the VS toolbars are still prettier. (Context)Menu - VS has the blue menu item focus box replaced with a nice orange one, which gives the application much warmer and friendlier feel.

AvalonDock DockingManager does not load layout

ぐ巨炮叔叔 提交于 2019-11-29 15:11:50
问题 In order to save and load my layout I followed the instructions here, but it didn't work for me. I've got this XAML inside the MainWindow : <StackPanel Orientation="Vertical"> <Button Content="Save" Click="SaveButton_Click"/> <Button Content="Load" Click="LoadButton_Click"/> <ad:DockingManager x:Name="myDM"> <ad:LayoutRoot> <ad:LayoutPanel> <ad:LayoutDocumentPane> <ad:LayoutDocument Title="Document"> <TextBox /> </ad:LayoutDocument> </ad:LayoutDocumentPane> </ad:LayoutPanel> <ad:LayoutRoot

Where can I get themes for WPF controls that resemble the Visual Studio 2010 interface?

孤街浪徒 提交于 2019-11-28 20:55:33
My application is build around AvalonDock, which has quite good Visual Studio 2010 skin (which is much prettier than all the other skins). Now I would like to style the rest of my application to go with it. I'm interested most in following parts: Toolbar - I mostly managed to get the colors right on my own, but the VS toolbars are still prettier. (Context)Menu - VS has the blue menu item focus box replaced with a nice orange one, which gives the application much warmer and friendlier feel. Main window background - this is one thing which AD didn't get right. Are these styles somewhere on the

Sample code to show how to use Avalondock in an MVVM application [closed]

拜拜、爱过 提交于 2019-11-28 11:07:09
I am trying to use AvalonDock in my wpf application which is an MVVM application. Looking around I could not find any sample application showing how can I do this. AlavonDock says that it has native support for MVVM, so it should be easy to support mvvm, but there is no sample code. My questions are: How to write xaml that has a document manager and it is binded to viewmodel? How to add a new document to panel in this scenario? How can I get information about layout from documentmanegr (if it is possible). Martin there is an Example App in the CodePlex Source of AvalonDock - it's not included

Sample code to show how to use Avalondock in an MVVM application [closed]

断了今生、忘了曾经 提交于 2019-11-27 05:59:35
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 months ago . I am trying to use AvalonDock in my wpf application which is an MVVM application. Looking around I could not find any sample application showing how can I do this. AlavonDock says that it has native support for MVVM, so it should be easy to support mvvm, but there is no sample