title: How to implement a mux control
body: <p>I've implemented two different controls that allow a user to create and edit a filter for their data.  Both controls have a DependencyProperty called Filter that implements my IFilter interface.  One of the controls implements a RegularExpression filter, the other control implements a SelectionFilter (A list box where the select what items they want to filter on).</p>
  
  <p>I'd now like to create a control that combines these filters into a <em>CompoundFilterControl</em>.  The CoumpoundFilterControl should allow the user to select what type of filter they'd like to use.
  <a href="https://i.stack.imgur.com/FwEfU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FwEfU.png" alt="CompoundFilterControl"></a></p>
  
  <p>Ideally I'd like my CompoundFilterControl to also have a Filter DependancyProperty.  Depending on which Tab is selected, I'd like the Filter from the appropriate control to be selected.</p>
  
  <p>I have no idea how to do this.  The only thought I've had is impelementing the TabControl's SelectionChanged event and attempting to Dynamically bind the appropriate sub-control's Filter property to the CompoundFilterControl's Filter DependancyProperty.  Is this correct?</p>