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

DropDownButton popup placement #2569

Closed
GAMP opened this issue Jul 5, 2016 · 0 comments · Fixed by #2572
Closed

DropDownButton popup placement #2569

GAMP opened this issue Jul 5, 2016 · 0 comments · Fixed by #2572
Milestone

Comments

@GAMP
Copy link

GAMP commented Jul 5, 2016

You explicitly set placement in code thus its not possible to do it in style

 private static void IsExpandedPropertyChangedCallback(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs)
        {
            DropDownButton button = (DropDownButton)dependencyObject;
            if (button.clickButton != null)
            {
               button.menu.Placement = PlacementMode.Bottom;
                button.menu.PlacementTarget = button.clickButton;
            }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant