本文介绍了我如何像在绘画中通过拖动鼠标一样在WPF中绘制矩形和圆形/椭圆形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在WPF中开发白板应用程序.

如何像在画图"中一样通过拖动鼠标指针来拖动鼠标来绘制矩形和圆形/椭圆形?

我正在使用WPF画布进行绘制.

P.S. :我已经引用了此文章,但是它太复杂了,我是无法理解.

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.

P.S. : I have refered this article, but it''s too complex, i am not able to understand.

推荐答案


这篇关于我如何像在绘画中通过拖动鼠标一样在WPF中绘制矩形和圆形/椭圆形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-13 16:47