adamonstack
adamonstack

Reputation: 329

Programatically set the ToggleButton style within a treeviewitem

Does anyone know a way to set the style of a ToggleButton within a treeview item please?

As in something like treeviewItem.ToggleButton.Style = "Blah" if you see what I mean.

Many thanks.

Upvotes: 1

Views: 483

Answers (1)

devman
devman

Reputation: 1549

should be like this.

mytogglebutton.Style = CType(TryFindResource("MyToggleButtonStyle"),Windows.Style)

Upvotes: 2

Related Questions