asusralis
Topic Author
Posts: 85
Joined: 30 Jul 2018, 05:03

Setting ListBoxItem's Focusable property inconsistent with WPF.

24 Nov 2018, 23:54

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>
 
User avatar
sfernandez
Site Admin
Posts: 1911
Joined: 22 Dec 2011, 19:20

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

26 Nov 2018, 17:14

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.
 
asusralis
Topic Author
Posts: 85
Joined: 30 Jul 2018, 05:03

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

28 Nov 2018, 18:06

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?
 
User avatar
sfernandez
Site Admin
Posts: 1911
Joined: 22 Dec 2011, 19:20

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

28 Nov 2018, 18:31

Yes, it's fine to put it under C++ category as we have to fix it in the native library.
 
asusralis
Topic Author
Posts: 85
Joined: 30 Jul 2018, 05:03

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

01 Dec 2018, 01:43

Awesome, thanks!
 
User avatar
sfernandez
Site Admin
Posts: 1911
Joined: 22 Dec 2011, 19:20

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

03 Dec 2018, 14:35

Thanks for reporting.

Who is online

Users browsing this forum: No registered users and 2 guests