XYFocus<Direction> problem
Posted: 03 Oct 2024, 20:23
Hello all.
I'm using Noesis engine to create a UI in a Unity project.
I have a XAML layout with multiple hidden or invisible grids with tons of elements, UserControls with complex templates and so on.
I'm using a gamepad to navigate the UI. The default element to element focus movement is not looking good so I'm using noesis:Element.XYFocus<Direction>="{Binding ElementName=ElementToGoTo}" .
In many cases this works as expected but not always. Sometimes focus just seems to disappear and I need multiple clicks to get it back into the active panel. It seems to never happen to buttons but very often to usercontrols with complex templates, as well as ItemsControls (like ListBoxes and ComboBoxes).
The destination ElementName is unique over the whole application.
What might be the reason for the focus to not go where I'm expecting it to go?
Also, is there a way to log a currently focused element in an Update function of some script?
Thank you!
I'm using Noesis engine to create a UI in a Unity project.
I have a XAML layout with multiple hidden or invisible grids with tons of elements, UserControls with complex templates and so on.
I'm using a gamepad to navigate the UI. The default element to element focus movement is not looking good so I'm using noesis:Element.XYFocus<Direction>="{Binding ElementName=ElementToGoTo}" .
In many cases this works as expected but not always. Sometimes focus just seems to disappear and I need multiple clicks to get it back into the active panel. It seems to never happen to buttons but very often to usercontrols with complex templates, as well as ItemsControls (like ListBoxes and ComboBoxes).
The destination ElementName is unique over the whole application.
What might be the reason for the focus to not go where I'm expecting it to go?
Also, is there a way to log a currently focused element in an Update function of some script?
Thank you!