Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AutoCompleteBox Dropdown width

Can the width of the dropdown be set to a different value than the AutoCompleteBox itself?

like image 889
bmanu Avatar asked Nov 06 '22 01:11

bmanu


1 Answers

The Popup is a separate Part of the AutoCompleteBox, so it should be possible to extend that beyond the width of the text box.

In Blend, right-click on the AutoCompleteBox and select Edit Template > Edit a Copy, giving the new template a name.

Drill-down in the Objects and Timeline window to the 'Popup' part, and beneath that is a Grid. Change the width of that Grid to change the width of the popup content whilst maintaining the current width of the text box).

(I must admit I've only had chance to do this in Silverlight Spy, but it definitely works there so I can't see it being a problem doing it through Blend).

like image 124
Town Avatar answered Nov 11 '22 16:11

Town