xyzzer / WinRTXamlToolkit

WinRT XAML Toolkit
Other
282 stars 67 forks source link

Custom StyleSelector not working in TreeView Control #35

Open elvisxia opened 8 years ago

elvisxia commented 8 years ago

I have a basic TreeView Control and Applied a Custom StyleSelector to the TreeView Control. But it seems the override method SelectStyleCore never get called.

I tried it with ListView. SelectStyleCore get called correctly.

What have I done wrong? Or maybe it's a bug? You can find my demo here @xyzzer

corcus commented 8 years ago

I am having the same problem. It would be good to have an answer on this.

xyzzer commented 8 years ago

I answered the StackOverflow question about it here http://stackoverflow.com/questions/38243593/winrtxamltoolkit-treeview-itemcontainerstyleselector-not-firing/38549298#38549298

In short - I think it's not implemented, but there is a suggested way to fix it or work around the problem.