Skip to content
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

The specified key did not exist in the directory #2

Closed
DragonicK opened this issue Mar 26, 2017 · 2 comments
Closed

The specified key did not exist in the directory #2

DragonicK opened this issue Mar 26, 2017 · 2 comments

Comments

@DragonicK
Copy link

Hello, Robin. I have a problem when im trying to add some content on darkdockpanel.

darkDockPanel1.AddContent(new DarkDockContent());

The specified key did not exist in the directory.

@RobinPerris
Copy link
Owner

DarkDockContent has to have either the DockArea or the DefaultDockArea property set.

Not really sure what the use-case is for creating content without any... well, content. Generally I create a custom user control that inherits from DarkDockContent.

In any case, you can do it by setting the DefaultDockArea in the initialisation of the object. In your case, it would look like this (change the dock area to whatever you want it to be):

darkDockPanel1.AddContent(new DarkDockContent { DefaultDockArea = DarkDockArea.Document });

@DragonicK
Copy link
Author

Thanks, it is working.

kran27 referenced this issue in kran27/AltUI Feb 24, 2022
Fixed the display of the selected item in the combobox when changing …
Grille pushed a commit to Grille/DarkUI that referenced this issue Oct 29, 2024
Drop redundant type when declaration's LHS mentions it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants