WPF ListBoxItem SelectionItemPattern Availability Issue

奕縢 陳 0 Reputation points

In a standard WPF application, ListBoxItem is expected to consistently support the SelectionItemPattern, irrespective of its selection state. However, I have observed that when a ListBoxItem is selected, the IsSelectionItemPatternAvailable property unexpectedly changes to false. This behavior contradicts the expected behavior where IsSelectionItemPatternAvailable should remain true regardless of the selection state. While LsitBoxItem is on focus:

User's image

While LsitBoxItem isn't focus :User's image

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,663 questions
{count} votes