How do I disable bound ComboBoxItems in WinUI 3

youki
886
Reputation points
Hi,
I have a bound ComboBox with separators and i want to disable them.
I am getting the item by ItemContainerGenerator to disable them but if I scroll the dropdown of the ComboBox up and down, the disabled items getting enabled.
Is this the proper way to do it or does this work in C# and it's a bug in C++/WinRT?
Please watch the demo video:
https://github.com/yki5000/WinUI3_Unpackaged_CPP/issues/2
It seems to work as expected on the MainWindow.xaml (the main page) page but the ComboBox from the video is on an other page and is called by a frame in MainWindow.xaml.
{count} votes