-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DarkDockPanel add DarkDocument NullReferenceException within DarkControl #16
Comments
Note I was able to get past this by manually creating the objects and adding to the splitcontainer panel controls. |
You can follow a step-by-step on how to configure it here: If that doesn't help solve the problem you face, can you explain what you're trying to achieve with your current control hierarchy? I might be able to come up with a solution that works with DarkUI. |
Basically the structure I have is this When I try to drag-and-drop the DarkDockPanel onto the SplitContainer.Panel2 from the designer I get the error message above. However, if I do it grammatically there are no errors: var dock = new DarkDockPanel
{
Dock = DockStyle.Fill
};
splitContainer1.Panel2.Controls.Clear();
splitContainer1.Panel2.Controls.Add(dock);
var roleControl = new RoleAssignmentControl();
dock.AddContent(roleControl); So ultimately I'm able to work around this, just not from the designer. |
I have a DarkDockPanel, and within it there is a split control. When I try to add an additional DarkDockPanel to the split control panel, I get the following exception:
It appears you cannot add a DarkDockPanel to a DarkControl.
The text was updated successfully, but these errors were encountered: