C# - Most suitable design patterns to create a PictureBox supporting: panning / zooming / scrollable AND with selection tools (draggable rectangles) -


i create picturebox class derivated supporting zoom, pan, scroll features , selection tools (circle, rectangle, annulus).

i'm wondering wich design patterns should use (i think command pattern making undo / redo) , advices starting design control.

thank you!

you don't mention ui technology using, nor define "picturebox" i'm going assume mean building application slim version of "photoshop" , if you're doing desktop application opt wpf.

controls developed in visual studio using ui technology saying it's 'in visual studio' doesn't mean, wpf, silverlight, asp.net, webforms, windows forms, javascript, mono etc ...

given assumptions opt use mvvm main architecture application ui. promotes loose-coupling , takes advantage of benefits of wpfs data-binding technology.

that said if mean windows forms worth looking @ this.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -