Setting ListBoxItem's Focusable property inconsistent with WPF.
I'm trying to make it so ListBox items cannot be selected. Because the list items will eventually need to be selectable, I cannot use an ItemsControl.
I've found a solution of setting the ListBoxItem's Focusable property to false. This still sadly highlights items when the cursor is hovered over them, but in WPF it does not allow selection.
In Noesis, this seems to have no affect. The ListBox's items are still selectable.
I've found a solution of setting the ListBoxItem's Focusable property to false. This still sadly highlights items when the cursor is hovered over them, but in WPF it does not allow selection.
In Noesis, this seems to have no affect. The ListBox's items are still selectable.
Code: Select all
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="Focusable" Value="False"/>
</Style>
</ListBox.ItemContainerStyle>
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: Setting ListBoxItem's Focusable property inconsistent with WPF.
It seems to be a bug, could you please report it in our bugtracker, will fix it as soon as possible.
Thanks for your feedback.
Thanks for your feedback.
Re: Setting ListBoxItem's Focusable property inconsistent with WPF.
No problem. Quick question: when submitting bugs, what category should you give it? For example, this happens in Unity/C#, but the bug itself is from XAML. I would assume C# would be for bugs ran into in C#, and Unity for Unity. I didn't know, nor think, that this bug is only in C#/Unity, so I put it in C++. Is this correct?
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: Setting ListBoxItem's Focusable property inconsistent with WPF.
Yes, it's fine to put it under C++ category as we have to fix it in the native library.
Re: Setting ListBoxItem's Focusable property inconsistent with WPF.
Awesome, thanks!
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: Setting ListBoxItem's Focusable property inconsistent with WPF.
Thanks for reporting.
Who is online
Users browsing this forum: Bing [Bot] and 5 guests