document window using header

Docking/MDI for WPF Forum

Posted 8 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 8 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 8 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 (v2018.1 build 0675) 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.