Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1830
Using a custom autocomplete textbox
posted

I'm using a customer autocomplete textbox (http://wpfactb.codeplex.com) in XamTextEditor EditTemplate (v12.1), and all is working fine except when I use the tab key to navigate to the next cell, the autocomplete's dropdown doesn't close.  It does close when I click on the next cell.  I realize I'm not giving you much info about the autocomplete control, but can you think of anything I might be doing wrong using the following EditTemplate:

<Style TargetType="igEditors:XamTextEditor">

    <Setter Property="Template">

      ...

    </Setter>

    <Setter Property="EditTemplate">

        <Setter.Value>

            <ControlTemplate TargetType="igEditors:XamTextEditor">

                <actb:AutoCompleteTextBox x:Name="PART_FocusSite" BorderThickness="0" MaxLength="50">

                    <actb:AutoCompleteTextBox.AutoCompleteManager>

                        <actb:AutoCompleteManager>

                            <actb:AutoCompleteManager.DataProvider>

                                <local:PartDataProvider/>

                            </actb:AutoCompleteManager.DataProvider>

                        </actb:AutoCompleteManager>

                    </actb:AutoCompleteTextBox.AutoCompleteManager>

                </actb:AutoCompleteTextBox>

            </ControlTemplate>

        </Setter.Value>

    </Setter>

</Style>

  • 1830
    Verified Answer
    Offline posted

    You may consider this closed unless you have a recommendation for an excellent autocomplete textbox.  I lucked out in making what appears to be an innocuous change to the source code of the custom (not "customer") control from the link above.