title: Dealing with WPF objects inside ViewModel
body: <p>Using the MVVM pattern creating WPF applications you have the ViewModel providing data to the View. I've met a situation where I find it reasonable to create WPF objects in my ViewModel, and the View fetches these and shows them. More specifically I have functionality for drawing where I need to store an InkPresenter in the end. I receive the mouse gestures in the code-behind of the view, but pass the events to the ViewModel. The ViewModel handles the mouse event and creates drawing objects that is put in an ObservableCollection such that the View can fetch them out and display them. </p>
  
  <p>The question is; is this okay, or is it bad practice to create WPF objects in the ViewModel classes? And why? If it is okay; are there any best practices or recommendations to dealing with these objects? </p>