如何动态创建Xaml页面并具有拖放功能以在WPF中动态添加控件? [英] How feasible is it to create Xaml pages on the fly and also have drag/drop feature to add controls on the fly in WPF?

查看:103
本文介绍了如何动态创建Xaml页面并具有拖放功能以在WPF中动态添加控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请解释一下这些功能在WPF中的支持程度。



希望我的问题能理解。如果有任何疑问,请告诉我。

Please explain about this features how supportive they are in WPF.

Hope my question is understood. If any queries please let me know.

推荐答案

现在工作正常。我只使用Canvas,在拖动控件和保存点击,阅读画布的内容并写入xaml文件。



为了进一步理解,请检查以上评论。
Now it is working fine. I''m using Canvas only and in that dragging controls and on save click, reading the contents of canvas and writing to a xaml file.

For further understanding, check the above comments.


这篇关于如何动态创建Xaml页面并具有拖放功能以在WPF中动态添加控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆