I'm working on a graphics application where the user clicks on FrameworkElements and drags them around on a Canvas. It works in code-behind, but want to update it with Catel/MVVM.
My general question: In this app, the ViewModel has to "know" about the View because it must know of the MousePosition relative to the "LayourRoot" to update the objects position, which is counter to the MVVM pattern. Would it be better to handle all Mouse/FrameworkElement interaction in code behind and any data/FrameworkElement with MVVM properties. (By data/FrameworkElement I mean storing certain property values, such as Canvas.Top, Canvas.Left, Fill, etc. in a datastore.)
Any advice on general approach?