-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HamburgerMenu ItemInvoked doesn't fire automatically #3436
Comments
@furqansafdar Can you create for this issue a sample? Thx |
@furqansafdar Or did you mean, that the OnItemInvoked will not be fired for the first time load of the control? |
@punker76 Yes, i think OnItemInvoked should fire after loading because essentially it hold the logic to load the corresponding content. |
While I am checking this issue after a long time, but still in version 2.4.10 of MahApps.Metro, it is still existing. No auto invocation of OnItemInvoked when SelectedIndex is set to 0. Am I missing something? |
@furqansafdar must probably be a different issue. Please use discussions and show your xaml and ViewModel involved. Maybe there is something missing... Note: In general, do not answer closed issues. There's a high chance your comment gets lost. |
Problem
I have found a small glitch or bug you may say in
HamburgerMenu
when using it with PRISM library to load dynamic modules.I have a navigation pane on left and content pane on right (as shown in the screenshot below). Every module is loaded with navigation item and upon clicking the item, the corresponding content is loaded in the right pane. I have set the HamburgerMenu's SelectedIndex to 0, so that once the loading it completed the first item is selected and its corresponding content is loaded. The logic of loading the content is residing in HamburgerMenu's
ItemInvoked
event but it is not fired automatically for the selected item. Hence the following layout is produced.Now when i click the first item again, event fires and content is loaded. I think this issue can be solved if ItemInvoked fires for selected item automatically.
Environment
The text was updated successfully, but these errors were encountered: