document window using header

Docking/MDI for WPF Forum

Posted 13 years ago by Mary Fontana - Rudolph Technologies
Version: 11.1.0540
Avatar
I created a custom DocumentWindow which defines the header to include a save button like the example in the QuickStarts Custom Docking Windows. I do a programmatic creation of this custom window. I have constructors that call the base DocumentWindow constructors.
When I call the base DocumentWindow(dockSite, ...). The Header property is null.
If I just instantiate with a no arg constructor, the Header is not null, but then I can't set the window's DockSite. What am I doing wrong?

Or is there a better way of doing this?

Thanks,
Mary

[Modified at 02/03/2011 05:50 PM]

Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Mary,

It's hard to tell without seeing how you have things setup. You may not be calling InitializeComponent in the constructor that does not work.

If you can please put together a small sample project and email it over to our support address we can take a closer look.


Actipro Software Support

Posted 13 years ago by Mary Fontana - Rudolph Technologies
Avatar
The problem was the InitializeComponent() not being called. I just assumed that it would be called in by the base constructor.
Thanks for your help.
The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.