AutoCompleteBox Binding Issue

Apr 16, 2010 at 12:39 AM
Edited Apr 16, 2010 at 12:42 AM
In My view I have the following constructor: public MainView() { InitializeComponent(); _vm = new MainViewModel(); DataContext = _vm; } In the XAML I have the following code for the AutoCompleteBox. This seems to work fine for populating the AutoComplete values but I want the text to be bound to a _vm.Project property (Text="{Binding 'Project', ...), this doesn't seem to be updating the view model can anyone help please? <toolkit:AutoCompleteBox Height="22" Text="{Binding 'Project', Mode=OneWay}" Margin="0,0,30,0" Width="200" ItemsSource="{Binding Path=ProjectNames}"></toolkit:AutoCompleteBox> Thanks in advance, Brendan
May 10, 2010 at 10:38 PM
Text="{Binding 'Project', Mode=OneWay} Think that might have something to do with it? try Mode=TwoWay