title: How do Behaviors and ViewModels relate in MVVM?
body: <p>So I stumbled upon a problem while learning MVVM. I had a TreeView that contained TextBlocks which I wanted to perform an action on when I double clicked any of the TextBlocks in the TreeView. I started to learn about Behaviors, and I have a great example of how a behavior is implemented but the example does not connect the Behavior to a ViewModel at all. So in other words, if I double click on the TextBlock, I have the Behavior class that catches it but I don't have any ViewModel to perform any actions.</p>
  
  <p>Could someone take a moment and explain how these tie in? I was reviewing this article:
  <a href="http://msdn.microsoft.com/en-us/library/gg430869(v=pandp.40).aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/gg430869(v=pandp.40).aspx</a>
  But I didn't seem to grasp what I was looking for.</p>