59

Closed

WP7: AutoCompleteBox not working in Pivot and Panorama

description

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.

comments

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.

wrote Nov 14, 2010 at 9:21 AM

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.

wrote Nov 14, 2010 at 10:08 AM

wrote Nov 23, 2010 at 7:12 AM

wrote Nov 29, 2010 at 9:34 PM

wrote Dec 1, 2010 at 8:57 PM

wrote Dec 5, 2010 at 8:12 PM

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.

wrote Dec 12, 2010 at 8:25 AM

wrote Dec 21, 2010 at 12:29 AM

wrote Dec 21, 2010 at 8:45 PM

wrote Jan 5, 2011 at 5:47 PM

wrote Jan 7, 2011 at 4:38 AM

wrote Jan 9, 2011 at 8:00 AM

wrote Jan 16, 2011 at 6:13 AM

wrote Jan 21, 2011 at 11:38 PM

wrote Jan 26, 2011 at 11:27 AM

wrote Feb 2, 2011 at 6:42 AM

wrote Feb 3, 2011 at 12:22 PM

wrote Feb 8, 2011 at 5:40 AM

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.

wrote Feb 24, 2011 at 10:13 PM

wrote Mar 1, 2011 at 12:02 PM

wrote Mar 7, 2011 at 2:08 PM

wrote Mar 8, 2011 at 8:01 PM

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.

http://www.jeff.wilcox.name/2011/03/acb-in-pivot/

Thanks,
Jeff

wrote Mar 10, 2011 at 7:02 AM

wrote Mar 10, 2011 at 11:34 AM

wrote Apr 15, 2011 at 4:46 AM

wrote Apr 23, 2011 at 4:33 PM

wrote May 1, 2011 at 9:57 PM

LoungeFlyZ wrote May 2, 2011 at 2:29 AM

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

wrote May 9, 2011 at 12:31 AM

wrote Jun 1, 2011 at 12:30 PM

wrote Jun 4, 2011 at 6:27 PM

wrote Jun 13, 2011 at 4:43 PM

wrote Aug 1, 2011 at 4:23 PM

wrote Aug 5, 2011 at 3:06 PM

wrote Aug 11, 2011 at 7:07 PM

wrote Aug 15, 2011 at 6:08 PM

wrote Aug 17, 2011 at 7:02 PM

wrote Aug 23, 2011 at 8:54 PM

wrote Oct 3, 2011 at 10:46 PM

wrote Oct 4, 2011 at 1:47 AM

wrote Oct 7, 2011 at 2:09 AM

wrote Oct 18, 2011 at 6:16 AM

wrote Oct 23, 2011 at 2:40 PM

wrote Oct 30, 2011 at 7:27 AM

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?

wrote Nov 28, 2011 at 8:26 AM

wrote Dec 7, 2011 at 11:01 AM

redaxe wrote Dec 7, 2011 at 11:02 AM

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

wrote Dec 20, 2011 at 12:42 PM

wrote Jan 3, 2012 at 7:39 AM

wrote Jan 7, 2012 at 11:29 AM

wrote Jan 16, 2012 at 3:27 PM

wrote Jan 25, 2012 at 3:22 PM

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.

wrote Jan 30, 2012 at 5:00 AM

wrote Feb 3, 2012 at 12:42 AM

wrote Feb 21, 2012 at 10:31 PM

wrote Mar 6, 2012 at 3:49 PM

wrote Mar 6, 2012 at 4:28 PM

wrote Mar 6, 2012 at 5:20 PM

wrote Mar 7, 2012 at 6:26 AM

wrote Mar 7, 2012 at 1:14 PM

wrote Mar 7, 2012 at 1:19 PM

wrote Mar 7, 2012 at 1:19 PM

wrote Mar 8, 2012 at 3:20 AM

wrote Apr 5, 2012 at 4:10 PM

wrote Apr 22, 2012 at 8:40 PM

wrote Apr 25, 2012 at 9:53 PM

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 Jun 22, 2012 at 11:59 AM

wrote Jul 24, 2012 at 8:55 AM

wrote Aug 19, 2012 at 3:18 AM

wrote Sep 5, 2012 at 11:56 PM

wrote Sep 18, 2012 at 10:19 PM

wrote Sep 24, 2012 at 10:55 PM

wrote Sep 26, 2012 at 5:24 AM

Fixed on changeset 79852

wrote Sep 26, 2012 at 5:26 AM

wrote Oct 22, 2012 at 8:32 PM

wrote Oct 22, 2012 at 8:33 PM

wrote Feb 22, 2013 at 1:51 AM

wrote May 16, 2013 at 12:34 PM