从Stackpanel拖放按钮到wpf中的wpf窗口 [英] Drag and Drop button from Stackpanel to wpf window in wpf
本文介绍了从Stackpanel拖放按钮到wpf中的wpf窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有使用C#的WPF项目(2012年视觉效果)
我有一个窗口:左侧是stackpanel和scrollviewer包含画布,
在stackpanel中,我添加了更多1个按钮和1个椭圆。
现在,我想拖放按钮或者从stackpanel到cavas的椭圆。
但是我不能这样做。
请帮助我(我在C#中使用WPF)
Hi All,
I have project about WPF using C#(visual 2012)
I have 1 window with: stackpanel on left and scrollviewer contain canvas,
in stackpanel, I add more 1 button and 1 ellipse.
now, I want to drag and drop button or ellipse from stackpanel to cavas.
but I can not do this.
please help me(i am begginer abour WPF in C#)
推荐答案
您好,
您可以参考以下文章获取详细信息。
WPF图设计师 - 第2部分 [ ^ ]
希望这会对你有帮助。
Hi There,
You can refer below article for detailed info.
WPF Diagram Designer - Part 2[^]
Hope this will help you.
这篇关于从Stackpanel拖放按钮到wpf中的wpf窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文