简体   繁体   中英

What is the best approach to do dynamic layout in WPF?

My main view should be splited to 3 regions, every region should contain a view, and...

their placemants should be switched on run time .

What is the best (easiest, generic, maintainable) approach to do this dynamic layout in WPF ?

在此处输入图片说明

You can use AvalonDock control.

AvalonDock is a docking windows control for WPF that lets you create customizable layouts using a full featured window docking system similar to what is found in many popular integrated development environements (IDEs) such as Visual Studio. It includes themes and samples to get you started.

Here you can find documentation.

On the codeproject.com is 5-part tutorial series about AvalonDock [2.0]:

  1. AvalonDock [2.0] Tutorial Part 1 - Adding a Tool Window
  2. AvalonDock [2.0] Tutorial Part 2 - Adding a Start Page
  3. AvalonDock [2.0] Tutorial Part 3 - AvalonEdit in AvalonDock
  4. AvalonDock [2.0] Tutorial Part 4 - Integrating AvalonEdit
  5. AvalonDock [2.0] Tutorial Part 5 - Load/Save Layout with De-Referenced DockingManager

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM