-
Notifications
You must be signed in to change notification settings - Fork 1.4k
added fix for menuflyout not positioned correctly on edges #1284
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
Conversation
|
|
||
| if (!_menuFlyoutRepositioned) | ||
| { | ||
| var item = _menuFlyout.Items.First(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's possible for a menu to not have any items
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the dependency on Items completely
| VisualStateManager.GoToState(this, "Opened", true); | ||
| _parentMenu.IsInTransitionState = false; | ||
|
|
||
| if (!_menuFlyoutRepositioned) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is opened called multiple times in a row? Why check when for this variable when it's set to false on close?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the first time when checking if it should be re positioned, and the second time if it's being shown re positioned
|
@nmetulev if you used the following xaml code you'll receive an exception Will fork your repo and try to expose menu placement property and adding some validations |
|
Closed for sake of another PR that has same commits. I just couldn't push on Nikola branch. new branch is #1285 |


No description provided.