WPF形式 [英] form to wpf

查看:88
本文介绍了WPF形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!
我探索了表单设计的新格式.(WPF).
我已经在C#控件表单中完成了一个表单项目.我想切换到WPF形式.如果从系统表单到WPF表单有一些快速转换,请指导我.
谢谢.
问候.

Hi everybody!
I have explored the new format of forms design.(WPF).
I have done a form project in C# control forms. I want to switch to WPF form. please guide me if there is some quick conversion from system form to WPF form.
thank You.
Regards.

推荐答案

好吧,如果您查看与表单相对应的".designer.cs"文件,则该文件通常可用于在WPF中创建一个Window.您基本上可以创建控件并将其添加到其他控件中.但是,某些控件是不同的,某些属性的处理方式也不同,因此您将不得不手动处理它们.

您还可以学习XAML并以这种方式创建控件.同样,这将是手动的.

您可以将Form设置为控件,然后将该Windows Forms控件托管在WPF窗口中(是的,您可以这样做).
Well, if you view the ".designer.cs" file corresponding to the Form, that can mostly be used to create a Window in WPF. You basically create controls and add them to other controls. However, some of the controls are different and some properties are handled differently, so you''ll have to handle those manually.

You could also learn XAML and create the controls that ways. Again, this would be manual.

You could make the Form a control, then host that Windows Forms control in the WPF Window (yeah, you can do that).


这篇关于WPF形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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