title: Attached behaviour when several controls are affected
body: <p>In an effort to minimize the stuff in our code behind I want convert some of our event logic into attached behaviour. I've read <a href="http://www.mindscapehq.com/blog/index.php/2009/02/01/attached-behaviours-in-wpf/" rel="nofollow">this article</a> and while I want to achieve something similar, I'm unsure how I would proceed if the behaviour affects multiple controls.</p>
  
  <p>An example: Our application features a sidebar that the user can dock to either the left or right side via a button. If the button is triggered our event fires and rearranges the controls accordingly. This is easy enough to do with plain code behind, since I have access to all controls present in the view. </p>
  
  <p>Now, I would add an attached behaviour to that button to handle that case, but I would need access to other controls to change their positioning. Is this possible with attached behaviour (and if so, how?), or is there another possibility or pattern to do this?</p>