wpf-demos icon indicating copy to clipboard operation
wpf-demos copied to clipboard

TreeView: InvalidateSelectedItemView throw exception in Windows11 theme change

Open BagheriIG opened this issue 1 year ago • 0 comments
trafficstars

I've used TreeView in my WPF application. Previously, the application theme was set on "FluentDark/Light". I have a button to switch the theme between light and dark mode. Right now I'm trying "Windows11Dark/Light" for my app. With this change after I switch the theme, I get an exception with the message:

"Object reference not set to an instance ... "

The stack trace shows that the exception comes from this method:

"at Syncfusion.UI.Xaml.TreeView.TreeViewItemInfoBase.InvalidateSelectedItemView()"

BagheriIG avatar Apr 02 '24 07:04 BagheriIG