<p>I am following the <a href="http://blogs.msdn.com/johngossman/archive/2005/10/08/478683.aspx" rel="noreferrer">M-V-VM</a> pattern for my WPF UI. I would like to hook up a command to the TextChanged event of a TextBox to a command that is in my ViewModel class. The only way I can conceive of completing this task is to inherit from the TextBox control, and implement ICommandSource. I can then instruct the command to be fired from the TextChanged event. This seems to be too much work for something which appears to be so simple.</p>

<p>Is there an easier way (than subclassing the TextBox and implementing ICommandSource) to hook up the TextChanged event to my ViewModel class?</p>

Can you not just handle the TextChanged event and execute the command from there?
```
```
private void _textBox_TextChanged(object sender, EventArgs e)
{
    MyCommand.Execute(null);
}
```
```
The alternative, as you say, is to create a
```
TextBox
```
that acts as a command source, but that does seem like overkill unless it's something you're planning on sharing and leveraging in many places.