MVVM & customised document window header

Docking/MDI for WPF Forum

Posted 8 years ago by Andrea McPherson
Version: 11.1.0542
Avatar
I am using MVVM to create a set of documents in a tabbed MDI host (this is working fine). I want to be able to create a customised header with a circular progress bar as shown in the docking samples / docking window header app and bind whether the progress bar is showing based on a property in the view model. Any help in achieving this will be greatly appreciated.

Andrea

Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Andrea,

You would probably have to use a Style to bind the Header property to the current DataContext (i.e. <Setter Property="Header" Value="{Binding}" />). Then you'd define your custom header using the HeaderTemplate property. In that DataTemplate, you can bind to your view-model as the implicit context.


Actipro Software Support

The latest build of this product (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.