I was hoping someone can point me in the right direction.
I have developed a document reader based around XPS which allows the users to draw an image with the mouse on top of the paginated document in a Canvas. Now this works great in the original orientation (Portrait).
But as soon as I perform a RotateTransform (90 or 270 degrees) on the Canvas for Landscape pages, then attempt to draw again, the image is in the wrong orientation because the left and top of the Canvas has shifted.
Now I can do a RotateTransform on the image before the drawing begins, but on the mousemove event it's going in the opposite direction.
Is there a way to move the left and top of the Canvas to a new position after the RotateTransform?
I'm sorry, but your question is far too broad to be able to answer in a simple forum. Which particular part of this are you having a problem with? WCF? Saving to a database? The principles of MVVM? Some other issue? Remember that we don't know what problem you're actually trying to solve or what your level of knowledge is, so you have to help us by focusing in on the issue you're having a problem with.
Please picture the below points (WPF-> WCF-> DataBase)
1. MVVM is an architecture design pattern used in WPF
2. WPF application need to consume a WCF service for performing CRUD operations
3. WCF will contain the logic for performing CRUD operations with Database for that you can use NHibernate, Entity Framework or with simple ADO.net etc