如何在按钮的wpf应用程序中使用c#动态添加文本块。 [英] How to add text block dynamically using c# in wpf application by button.

查看:105
本文介绍了如何在按钮的wpf应用程序中使用c#动态添加文本块。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何动态地将文本块添加到另一个窗口。如果我有两个窗口,在一个窗口中有一个按钮,所以当我点击按钮时,它会将文本块添加到另一个窗口,它将继续根据按钮点击添加文本块。如何做?

解决方案

如果你想在wpf表单之间共享/传递数据,请参阅类似问题 [ ^ ]。

How to add text block dynamically to another windows. If i have two windows and in one window there is a button so when i will click the button it will add the text block to another window and it will keep on adding the text block based on the button clicks.How to do it?

解决方案

If you're talinkg about sharing/passing data between wpf forms, please see similar questions[^].


这篇关于如何在按钮的wpf应用程序中使用c#动态添加文本块。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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