WPFtoolkit中 AutoCompleteBox 的使用解决思路

WPFtoolkit中 AutoCompleteBox 的使用在WPF的Toolkit中AutoCompleteBox中选中的值如何绑定到ViewModel中??

WPFtoolkit中 AutoCompleteBox 的使用
在WPF的Toolkit中AutoCompleteBox中选中的值如何绑定到ViewModel中??我这样尝试了好像不行,UI上选择之后的值不会传递到ViewModel 
<wpfToolkit:AutoCompleteBox HorizontalAlignment="Left" Grid.Row="1" Grid.Column="1"
  Margin="4"
  MinWidth="200"
  MaxDropDownHeight="150"
  Text="{Binding test}"
  SelectedItem="{Binding test}"
  ItemsSource="{Binding testList}">
   
  </wpfToolkit:AutoCompleteBox>

[解决办法]
AutoCompleteBox 默认是OneWay方式绑定的,你需要指定绑定方式:

Text="{Binding test,Mode=TwoWay}"
SelectedItem="{Binding test,Mode=TwoWay}"