When I create a new DocumentWindow according to your documentation it works fine:
However, when I extend the DocumentWindow class with my own class (that had a few additional properties) the tab doesn't appear!
I have removed everything from my DocumentWindow class and it still doesn't work:I then modify the original creation code to use TestDocumentWindow rather than just DocumentWindow, and the window appears without a tab.
Are you guys actually checking to ensure it's an instance of a DocumentWindow and not allowing child classes?
Thanks for your assistance.
Sincerely,
Robert
TextBox content = new TextBox();
string name = "MyDocumentWindow1";
string title = "My First Document Window";
BitmapImage image = new BitmapImage(new Uri("/Images/Test.png", UriKind.Relative);
DocumentWindow window = new DocumentWindow(dockSite, name, title, image, content);
window.Activate(true);
I have removed everything from my DocumentWindow class and it still doesn't work:
public class TestDocumentWindow :
ActiproSoftware.Windows.Controls.Docking.DocumentWindow
{
public TestDocumentWindow(DockSite dockSite,
string docName, string title,
ImageSource imageSource, object content)
: base(dockSite, docName, title, imageSource, content)
{ // EMPTY
}
}
Are you guys actually checking to ensure it's an instance of a DocumentWindow and not allowing child classes?
Thanks for your assistance.
Sincerely,
Robert