I'm writing my first WPF application and I need help choosing the right approach to commands. I also using prism and MEF to allow extensions to the UI.
I have a Viewport3D which essentially displays a map. I want to allow users to create annotations on the map. I also want extensions to be able to display and edit their own custom annotations.
An example would be a command for the user to create a polyline. I would like to display a custom mouse cursor during the command, render a line segment each time the left mouse button is clicked, and commit the geometry to a database
when the executes.
It seems that I need to ignore the built-in command system and create custom command implementation to inject a transparent PathGeometry over the Viewport3D, hook the Viewport3D input events, capture the mouse, and commit changes to the
database when the user concludes the input sequence.
Is there a better way to do this that I am missing? ICommand doesn't seem to support drawing a command in progress.
View Complete Post