Page 1 of 1

Setting ListBoxItem's Focusable property inconsistent with WPF.

Posted: 24 Nov 2018, 23:54
by asusralis
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.
            <ListBox.ItemContainerStyle>
                <Style TargetType="ListBoxItem">
                    <Setter Property="Focusable" Value="False"/>
                </Style>
            </ListBox.ItemContainerStyle>

Re: Setting ListBoxItem's Focusable property inconsistent with WPF.

Posted: 26 Nov 2018, 17:14
by sfernandez
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.

Re: Setting ListBoxItem's Focusable property inconsistent with WPF.

Posted: 28 Nov 2018, 18:06
by asusralis
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?

Re: Setting ListBoxItem's Focusable property inconsistent with WPF.

Posted: 28 Nov 2018, 18:31
by sfernandez
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.

Posted: 01 Dec 2018, 01:43
by asusralis
Awesome, thanks!

Re: Setting ListBoxItem's Focusable property inconsistent with WPF.

Posted: 03 Dec 2018, 14:35
by sfernandez
Thanks for reporting.