igorjrr
igorjrr

Reputation: 892

WPF TreeViewItem Style individual borders

I need to create 3 styles for the items in a TreeView:

Style1 should show a border at the top of the item (full line, not only this item's content width)

Style2 should have no border, but a Red background (this is done already)

Style3 should show a border at the bottom of the item

The styles will be assigned in code behind according to some situation.

How do I define the borders in these styles?

Thank you!

Upvotes: 0

Views: 433

Answers (0)

Related Questions