title: MVVM-Pattern for a Diagraming Application with WPF - Convert enum to xxxViewModel
body: <p>I'm trying to apply the MVVM design pattern to a diagramming application. In this application there are different items (for example a rectangle, a circle,...). I would like to save the item type as an enum in my model.</p>
  
  <p>In my modelview I made a class for every item type (rectangleViewMode, circleViewMode,...).</p>
  
  <p>On my view I apply a data template to the type, so it renders like a circle, or like a rectangle.</p>
  
  <p>The problem is...how can I convert the enum in my model to the requiered xxxViewMode? I have a lot of types and I would like an automatic conversion.</p>
  
  <p>I'm new to MVVM and maybe there is a better approach...so better solutions are welcome! :)</p>
  
  <p>Thank you very much</p>