RobinPerris / DarkUI

Dark themed control and docking library for .NET WinForms.
MIT License
837 stars 186 forks source link

I can't add nodes items in DarkTreeView, because there is no function in properties to add that #65

Open MikaCybertron opened 2 years ago

MikaCybertron commented 2 years ago

can someone help me??

I can't add nodes items in DarkTreeView, because there is no function in properties to add that like the image below. and also how to use SelectedNodesChanged Event??

here is the image: image

huynhit24 commented 2 years ago

Can you explain more clearly?

MikaCybertron commented 2 years ago

Can you explain more clearly?

as you can see in the image above, there is no function in properties like adding collection and something like that, so cause that i have to add it manually with code, and adding manually is annoying and confused for sub items, i was trying to make like this image in below with DarkTreeView, but i can't

image

RobinPerris commented 2 years ago

The default node editor isn't compatible with darkui because it uses custom code instead of the in-built dotnet node classes. Adding a custom property editor is a pain in the ass so I never bothered - all the UIs I created with darkui were built programmatically so it wasn't worth the time investment

You can either follow the example and add the nodes through code, or you can extend darkui to have a custom editor. You can find information in the docs here: https://docs.microsoft.com/en-us/dotnet/api/system.drawing.design.uitypeeditor https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.design.iwindowsformseditorservice