-
Does anyone know how to set the selected sidemenuitem in code? I've set IsSelected to true to the menu item I want selected and IsSelected to false to all the others. Although, the menu does react properly afterwards. Something is missing. For example, a menu that has items doesn't collapse when unselected with code. Thank you so much for your help. |
Beta Was this translation helpful? Give feedback.
Answered by
charesch
Feb 17, 2022
Replies: 1 comment
-
Solved by using item.RaiseEvent(new RoutedEventArgs(SideMenuItem.SelectedEvent)); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
charesch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved by using item.RaiseEvent(new RoutedEventArgs(SideMenuItem.SelectedEvent));