TreeListBox - Change TreeItem Node expander shape to + and -

Grids for WPF Forum

Posted 20 days ago by Tom P.
Version: 19.1.0686
Avatar

I've been asked if we can override the default TreeListBox node expander from the Triangle (chevron) to the old school + and-.  For the life of me I cannot seem to override the default template for gridsPrimitives:TreeItemExpansionToggleButton

Any help would be greatly appreciaed.

Comments (2)

Answer - Posted 19 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Tom,

The TreeListBoxItem's Template puts an instance of TreeItemExpansionToggleButton in, and binds its Style property to the TreeListBoxItem.ToggleExpansionButtonStyle property.  I think you could make a Style targeting TreeListBoxItem and put a Setter for the ToggleExpansionButtonStyle property and that would get applied.


Actipro Software Support

The latest build of this product (v2020.1.0) was released 17 days ago, which was before the next post in this thread.
Posted 17 days ago by Tom P.
Avatar

Perfect.

[Modified 17 days ago]

Add Comment

Please log in to a validated account to post comments.