title: WPF - MVVM - Conditionally include user controls to view
body: <p>In WPF my MVVM application I need to create an account search view with 2 options simple search by account # or Advanced search (by name, email, etc.)</p>
  
  <p>In my AccountSearchViewModel I have a bool property IsAdvancedMode.</p>
  
  <p>Also I have created 2 UserControls for each mode: SimpleSearchView and AdvancedSearchView</p>
  
  <p>Now I need to show either one based on IsAdvancedMode property. </p>
  
  <p>What is the best way to do it?</p>
  
  <p>Also as a general solution what if I have SearchMode property that is enum. How whould you switch between multiple controls in that case?</p>