如何在VB.NET应用程序中使用WPF用户控件 [英] How to Use WPF User Control in VB.NET Application

查看:722
本文介绍了如何在VB.NET应用程序中使用WPF用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我创建了一个VB.NET应用程序,并制作了WPF用户控件(文本框).现在我想将数据从文本文件读取到此文本框中.我可以将数据读取到Win文本框中,但无法将其读取到WPF文本框中.我该怎么做?

Hello Everyone,

I''ve created a VB.NET application and made a WPF user control (Text Box) . Now i want to read data from text file into this text box . I can read data into win text boxes but unable to read it into WPF text box. How can i do this?

推荐答案

您必须在头脑中弄清楚绑定的概念.一旦知道了,那就没问题了.看一下本网站上一些非常简单的WPF示例.一分钟后,我将提供几个有用的链接.

WPF数据绑定-第1部分 [一次迁移到WPF数据绑定一步 [ ^ ]

WPF教程-概念绑定 [
You have to get the concept of Binding clear in your mind. Once you''ve got that it is no problem. Have a look at some of the very simple WPF examples on this site. I''ll get back with a couple of helpful link in a minute.

WPF Data Binding - Part 1[^]
Or
Moving Toward WPF Data Binding One Step at a Time[^]

WPF Tutorial - Concept Binding[^]


非常感谢Erik i在该网站上搜索了WPF示例,并从本文中找到了确切的解决方案.

将WPF用户控件集成到WinForms中 [
Thank You very much Erik i searched WPF examples on this website and found the exact solution from this article.

Integrate WPF UserControls in WinForms[^]


这篇关于如何在VB.NET应用程序中使用WPF用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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