Xyroid
Xyroid

Reputation: 463

how can I draw a rectangle and circle/ellipse in WPF like we do in paint by dragging mouse

I am developing a whiteboard application in WPF.

How can I draw a rectangle and circle/ellipse by dragging the mouse like we do in Paint by dragging the mouse pointer ?

I am using WPF canvas for drawing.

Upvotes: 1

Views: 2046

Answers (2)

Mikle
Mikle

Reputation: 11

To run WPF-DrawTools you have to:

  1. Let the VS to convert the project.
  2. Set appropriate NetFramework version (say, Net 4.5).
  3. Add references to correspondent libraries (e.g., PresentationCore) if VS could not find them itself.

Upvotes: 1

JSJ
JSJ

Reputation: 5691

have a look into below link

http://www.codeproject.com/Articles/22776/WPF-DrawTools

Upvotes: 2

Related Questions