Search code examples
silverlightxamlwindows-phone-7silverlight-toolkit

AutocCompleteBox acting weird, wrong position of the dropbox menu


I'm trying to use the AutoCompleteBox control by the Windows Phone Toolkit. but its acting weird, its like this:

enter image description here

this is my xaml code:

<controls:PanoramaItem Header="search">
            <StackPanel>
                <TextBlock Text="What?" />
                <StackPanel Orientation="Horizontal">
                    <toolkit:AutoCompleteBox Width="350" Height="80" TextChanged="txtWhat_TextChanged" x:Name="txtWhat" />
                    <Button Width="75" x:Name="search" Click="search_Click" />
                </StackPanel>
                <TextBlock Text="Where?" />
                <TextBox x:Name="txtWhere" />
            </StackPanel>
        </controls:PanoramaItem>

Its funny that to get an item I have to click right above the textbox itself. I've also tested it on the device. got the same screen
am I missing something here?


Solution

  • Turns out this is a common bug in the toolkit, we CANT use AutoCompleteBox inside a pivot, panorama or ScrollViewer :( http://silverlight.codeplex.com/workitem/7574