Is it possible to make the silverlight combo-box “drop up” i.e. display the popup above the combo-box instead of bellow as per default?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The first step is to define your own ComboBox Template, that contains the definition of the Popup. Edit a copy using Blend for example.
However, placing that Popup above is not an easy task as Silverlight Popups have no
PlacementorPlacementTargetproperties like in WPF that would allow to display it above.Luckily Kent Boogaart wrote an Attached Behavior that adds this capability and it is used like this:
Where
ContentPresenterBorderis the name of the container that holds the ToggleButton of the ComboBox.