DarkUI icon indicating copy to clipboard operation
DarkUI copied to clipboard

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

Open MikaCybertron opened this issue 4 years ago • 3 comments

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

MikaCybertron avatar Apr 04 '22 12:04 MikaCybertron

Can you explain more clearly?

huynhit24 avatar Apr 17 '22 09:04 huynhit24

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

MikaCybertron avatar Apr 17 '22 13:04 MikaCybertron

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

RobinPerris avatar Apr 17 '22 13:04 RobinPerris