WP7: AutoCompleteBox not working in Pivot and Panorama


AutoCompleteBox ceases to list items properly or select an item properly when it is placed in a PivotItem. Reproduced the bad behavior in the attached source code. To reproduce, simply put a functioning AutoCompleteBox inside a PivotItem of a Pivot control.

file attachments

Closed Oct 22, 2012 at 8:33 PM by shawnoster
Closing all issues marked as fixed, dupe or no repro for the Windows Phone Toolkit September 2012 release.


drelyea wrote Nov 7, 2010 at 3:05 PM

Yes, unfortunately that is a known issue. Thanks for reporting it.

fignewtron wrote Nov 7, 2010 at 7:28 PM

Ok, I'll try to debug for my specific situation in the PopupHelper class. The two workarounds I know about are to either add a separate PhoneApplicationPage to host the AutoCompleteBox, or to place the AutoCompleteBox in a Popup control outside of the Pivot control. While that works fine, it would be better for the flow of my application to have the AutoCompleteBox on one of my PivotItems. Too bad.

Beave wrote Nov 14, 2010 at 9:30 AM

Same problem when using it in a panorama page.
Also on a normal page when placed on the lower part of the page. Just try it by copying two lines in the AutoCompleteBoxSample.xaml
        <TextBlock Text="AutoCompleteBox, single-line items" Style="{StaticResource PhoneTextNormalStyle}"/>
        <toolkit:AutoCompleteBox VerticalAlignment="Top" ItemsSource="{StaticResource words}" Margin="0,12"/>
in the StackPanel to the end (there is room to copy it twice). It doesn't scroll to the right place.

davidhagg wrote Dec 5, 2010 at 8:17 PM

Is the fix for this going to be included in the next release? Really eager to use it in my application but it seems too buggy.

jeffwilcox wrote Feb 8, 2011 at 7:09 PM

We've had a few asks about this: best workaround is to try and include the control outside of the Pivot control (no need to be inside of a Popup, fyi), overlaying it, and then use the loading events to see which pivot item needs to show it as visible instead of collapsed.

Offering a fix for this inside the product is non-trivial and would just be a stop-gap implementation, which we would rather not ship.

fignewtron wrote Feb 8, 2011 at 7:43 PM

Thanks Jeff. Agreed, it would be non-trivial to fix so instead I used a separate page to host AutoCompleteBox controls. The control works fine outside of Pivot/Panorama. I'm happy with the workaround.

jeffwilcox wrote Mar 8, 2011 at 8:07 PM

This issue was raised inside Microsoft as well; at this time the fix is very difficult and it is not planned at this time. The bug status will be updated if anything further changes.

Recommendation remains to re-template to not use a popup.

jeffwilcox wrote Mar 9, 2011 at 9:51 PM

FYI: I have a blogged a workaround that may help you achieve your scenarios now.



LoungeFlyZ wrote May 2, 2011 at 2:29 AM

Gah! It also doesnt seem to work if inside a ScollViewer :(

amarwadi wrote Nov 28, 2011 at 8:25 AM

Gentlemen, this is an extremely critical issue for us. We need the Autocomplete box working inside of a scroll viewer with Pivot controls. It has been a year. Is there any update on this issue?

redaxe wrote Dec 7, 2011 at 11:02 AM

Can anybody let us know when should we expect the fix??? Thanks a lot

spGaryDeanBlakely wrote Jan 25, 2012 at 3:23 PM

If Microsoft can't get an autocomplete box to work, I better start writing Android and iOS apps.

InquisitorJax wrote May 3, 2012 at 8:30 PM

I don't understand how the impact of this work item can be "low" - the autoCompleteBox is useless inside a pivot item - a very common scenario - and it hasn't been fixed in a year and a half?!

wrote Sep 26, 2012 at 5:24 AM

Fixed on changeset 79852