Skip to content

DevExpress-Examples/wpf-docklayoutmanager-bind-view-model-collection-with-layoutadapters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF Dock Layout Manager - Bind the View Model Collection with LayoutAdapters

You can use LayoutAdapters to place dock panels in existing dock groups, as well as groups that have not yet been created. In this case, you should create the target group before you populate it with panels.

image

Follow the steps below to use the LayoutAdapter in your application:

  1. Create a LayoutAdapter class that implements the ILayoutAdapter interface.
  2. Implement the Resolve method. This method returns the target layout group name for the specified DockLayoutManager and the panel's ViewModel. When you implement the Resolve method, you can perform any action before the target name is returned.
  3. Assign a LayoutAdapter instance to the DockLayoutManager's MVVMHelper.LayoutAdapter attached property to add the LayoutAdapter to the DockLayoutManager.

Files to Look At:

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

This repository uses the ILayoutAdapter to bind a ViewModel collection to DockLayoutManager.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •