Disable up state if clicking Down button in ButtonBar

46 Views Asked by At

I am having ButtonBar to navigate through NavigationContent inside ViewStack.

It all works fine as expected but once we click a selected button second time. In this case the Button state changes to up state and it shows as if no button is selected right now.

I tried to address this issue by modifying ButtonBarButtonSkin for First, middle and last buttons by doing following: Set color for upandselected state to red (the color i set for selected state):

color.upAndSelected="0xFF0000"

But it did not help me.

How can I:

Either set the color for button that is up and selected?

Or Not allow ButtonBar to make state up in case the button being pressed is already in down State... ie... allowing clicking for only up state buttons.

1

There are 1 best solutions below

0
On

Just solved the problem by setting parameter requireSelection as true:

requireSelection="true"

PS: Leaving the question alive to help the other nubes like me.