Programatically set the ToggleButton style within a treeviewitem
Does anyone know a way to set t开发者_开发技巧he 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.
should be like this.
mytogglebutton.Style = CType(TryFindResource("MyToggleButtonStyle"),Windows.Style)
精彩评论