Add the UpdateSourceTrigger to your TextBox with the value PropertyChanged. The default behavior of the Textbox is to update the source, when it´s lost focus.
<TextBox Text="{Binding MyText, UpdateSourceTrigger=PropertyChanged}"/>
More Related Contents:
- How to preserve control state within tab items in a TabControl
- What framework for MVVM should I use? [closed]
- Bind to a value defined in the Settings
- WPF Attached Property Data Binding
- Open File Dialog MVVM
- How to correctly bind to a dependency property of a usercontrol in a MVVM framework
- Passing two command parameters using a WPF binding
- In WPF, why doesn’t TemplateBinding work where Binding does?
- WPF MVVM TreeView SelectedItem
- Are “{Binding Path=.}” and “{Binding}” really equal
- ItemsControl with multiple DataTemplates for a viewmodel
- VirtualizingStackPanel + MVVM + multiple selection
- WPF textblock binding with List
- WPF Animation “Cannot freeze this Storyboard timeline tree for use across threads”
- How to bind a TextBlock to a resource containing formatted text?
- WPF Treeview Databinding Hierarchal Data with mixed types
- Binding [VisualStateManager] view state to a MVVM viewmodel?
- Is Josh Smith’s implementation of the RelayCommand flawed?
- ComboBox.SelectedValue not updating from binding source
- Executing a command on Checkbox.Checked or Unchecked
- Prism Custom Confirmation Interaction
- Binding StringFormat
- MVVM and the TextBox’s SelectedText property
- Handling null when binding to an Image in XAML
- Keybinding a RelayCommand
- MVVM pattern violation: MediaElement.Play()
- What exactly are “WPF services”?
- How to access a control from a ContextMenu menuitem via the visual tree?
- How can I tell my DataTemplate to bind to a property in the PARENT ViewModel?
- WPF MVVM: how to bind GridViewColumn to ViewModel-Collection?