Skip to content
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

Allow using the DropDownButton without a dropdown menu #3704

Merged
merged 2 commits into from
Nov 28, 2019

Conversation

floele-ww
Copy link
Contributor

If it is necessary to use the DropDownButton without a menu under some circumstances (which is reasonable, because you can also hide the arrow button already) and only the "Click" event is used, the button will still try to open the empty menu, which can be seen by the user as a thick black line.

This change only tries to open the menu if there actually are some items inside and makes the DropDownButton behave similar to a normal button when clicked.

Update to latest version
Allow using the DropDownButton without a dropdown menu.

If it is necessary to use the DropDownButton without a menu under some circumstances and the "Click" event is used, the button will still try to open the empty menu, which can be seen by the user as a thick black line.
This change only tries to open the menu if there actually are some items inside.
@punker76 punker76 added this to the 2.0.0 milestone Nov 28, 2019
@punker76 punker76 merged commit 900ac9a into MahApps:develop Nov 28, 2019
@punker76
Copy link
Member

@floele-sp your changes have been merged, thanks for your contribution 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants