xceedsoftware / wpftoolkit

All the controls missing in WPF. Over 1 million downloads.
Other
3.9k stars 877 forks source link

DropDownButton : Position of Popup #991

Open xceedsoftware opened 7 years ago

xceedsoftware commented 7 years ago

BoucherS[CodePlex]
A user wrote : quotIs there a styling I can use to get the DropDownContent to appear to the right of the button rather than below?quot

xceedsoftware commented 7 years ago

BoucherS[CodePlex]
Currently, you have to modify the default DropDownButton style to position the popup to the right of the cotnrol. You can find the file to modify here :

-Xceed.Wpf.Toolkit/DropDownButton/Themes/Aero2.NormalColor.xaml (in Windows 8) -Xceed.Wpf.Toolkit/DropDownButton/Themes/Generic.xaml (in other Windows) Look for the Popup and replace the Placement=Bottom for Placement=Right.

In v3.0, a new property will be available on the DropDownButton and SplitButton to position the popup anywhere relative to the control.