Here's what I use:
Imports System.Windows.Interactivity Namespace Behaviors Public Class TextBoxUpdateBehavior : Inherits Behavior(Of TextBox) Public Sub New() End Sub Protected Overrides Sub OnAttached() MyBase.OnAttached() AddHandler AssociatedObject.TextChanged, AddressOf AssociatedObjectOnTextChanged End Sub Private Sub AssociatedObjectOnTextChanged(sender As Object, args As TextChangedEventArgs) Dim bindingExpr = AssociatedObject.GetBindingExpression(TextBox.TextProperty) bindingExpr.UpdateSource() End Sub Protected Overrides Sub OnDetaching() MyBase.OnDetaching() RemoveHandler AssociatedObject.TextChanged, AddressOf AssociatedObjectOnTextChanged End Sub End Class End Namespace
Graeme