I’m having an issue when trying to navigate between pages using a list of navigation buttons.
Currently I have the following logic for each button:
Each icon is set as a Toggle Button
Each icon has two triggers:
Property Trigger (Trigger) (IsChecked/True)
Has two setters:
set Icon to a selected state
set button isEnabled to false
EventTrigger (Event: Clicked)
all other icons in menu property “IsChecked” is set to “False”
I added a MethodAction to my EventTrigger:
Target: App
Method: GoToPage
Parameters: Dashboard.xaml
I can get the page to change by clicking on the button, but the problem I’m running into is that my button doesn’t seem to change its state when clicked. I have to click it 2x for it to be highlighted (it seems like my button actions aren’t executing when selecting the icon to open a new page). When I don’t include the GoToPage method, the icons behave as expected.
I might be doing something wrong, but can’t figure it out.
Any help would be greatly appreciated.
Thanks!
EDIT: Attached is a sample project I put together to illustrate my issue.
IconPageSelectIssueExample.hrp (132.9 KB)