This project is read-only.

Enter button in AutoCompleteTextBox not working

Apr 6 at 2:47 PM
Hello,

I'm using an AutoCompleteTextBox textbox in my C#/WPF app.
Code is as per below.When I hit "enter" or "tab" button after typing text in the textbox,I dont see SelectedProductName getting set.
Could you advise what am I missing here please?


xaml:

<wpf:AutoCompleteTextBox VerticalAlignment="Top"
                                 Height="25"
                                 Width="320"
                                 Margin="1,0"
                                 DisplayMember="Name"
                                 Text="{Binding Path=ProductName, Mode=OneWayToSource}"
                                 Watermark="Search"
                                 IconPlacement="Left"
                                 IconVisibility="Visible"
                                 Provider="{Binding SuggestionProvider}"
                                 SelectedItem="{Binding Path=SelectedProductName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                 x:Name="Actb" TabIndex="0" >
ViewModel:

public ProductNameViewModel SelectedProductName
    {
        get
        {
            return m_selectedProductName;
        }
        set
        {
//Invoke a method on WCF Service to get Product details
        }

Thanks.