Customize the Height and gap between TreeMenuItems

Hi, 

I use Winforms TreeNavigator but I would like TreeMenuItems to be height 40 (instead 60). It is OK. I set up item height to 40 and setup also max height to 40. I still want gap between TreeMenuItems (PadY) to be 2. TreeMenuItems gap is still like their height is 60. 

I tried to change location (Y) and that is ok in Design but when I start application gap enlarge to previous heights.

What am I doing wrong?

 


Attachment: Pictures_162b3ff2.zip

4 Replies

MJ Madhumithan Jayapathi Syncfusion Team August 11, 2023 11:18 AM UTC

Hi Sabian,

We have validated your query and you can set the padding to match your desired output by giving the PadY negative values whenever the size is decreased. We have attached a sample for your reference and please let us know if you need any further assistance.

Regards,
Madhumithan Jayapathi


Attachment: TreeNavigatorSize_163e9e93.zip


SS Sabian Sirius August 14, 2023 10:21 AM UTC

Thank you for fast reply. 


I forgot to point that I am programing in VB.net.

Please can you convert program in vb.net code.


I tried to add negative value in PadY but didn't effect. I changed Header Height in TreeNavigator, and than it worked well, but it would be good to keep Header Height and change height of items.



MJ Madhumithan Jayapathi Syncfusion Team August 15, 2023 11:42 AM UTC

Hi Sabian,

We have validated your query and we were able reduce the padding between TreeMenuItems by giving PadY negative value in .Net VB. We have attached the sample for your reference and please let us know if you need any further assistance.

Regards,
Madhumithan Jayapathi


Attachment: TreeNavigatorSizeVB_2b016617.zip


SS Sabian Sirius August 23, 2023 10:21 AM UTC

Hi,


Thank you very much. Everything works Ok now. 


Loader.
Up arrow icon