是否有可能将Windows项目实施为wpf项目 [英] is that possible to implement a Windows project to wpf project

查看:60
本文介绍了是否有可能将Windows项目实施为wpf项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个我无法实现一个模块但已经将其作为Windows项目实现的项目,因此有可能将其更改(而不转换为)wpf.
wpf中的Windows对象的属性(例如,标签文本图片框)是否可以在wpf中随其属性一起使用.

谢谢..

i doing a project where i wasnt able to implement one module but they have already implemented as a windows project is that possible to change (not converting) to wpf .
Do the properties of windows object like label text picturebox in windows will be available in wpf along with its attributes .

thank you ..

推荐答案

首先,WPF还是"Windows项目",那么您要转换"或更改"到WPF吗?

假设这是一个Forms项目:您可以手动完成,因为它们之间没有一对一的对应关系,并且即使有很多相似之处,控件的使用方式也不同.当然,您具有Label,TextBox等等,它们具有几乎相同的略有不同的属性;没有PictureBox,但这是一个非常愚蠢的控件,它已经在CodeProject查询器中以及在很多情况下(实际上不需要时)引起了很多混乱.所有图形完全不同,没有GDI之类的东西,但是WPF图形更易于使用.布局完全不同,但是有些想法很普遍.

—SA
First, WPF is also a "Windows project", so what do you want to "convert" or "change" to WPF?

Assuming this is a Forms project: you can possibly do it manually, as there is no one-to-one correspondence between them, and the controls are used is different way even though there are many similarities. Of course you have Label, TextBox and a lot more with nearly the same of slightly different properties; there is no PictureBox, but this is a pretty silly control which cause a lot of confusion in CodeProject inquirers already and in many cases when it is not actually needed. All the graphics it totally different, there is no anything like GDI, but WPF graphics is easier to use. Layout is totally different, but some ideas are common.

—SA


WinForms和WPF互操作性很好.在WPF中使用新模块的情况下进行升级,并用WPF替换旧模块.
WinForms and WPF interop well. do an upgrade where new modules are in WPF and replace old modules with WPF.


SA的答案应该清除您对Win-Forms和WPF的所有疑问.
看看下面的链接.

WPF简介

XAML概述(WPF)

关于CodeProject的WPF的大量文章.

http://www.codeproject.com/KB/WPF/
SA''s Answer should clear all your doubts about Win-Forms and WPF.

Have a look at below links.

Introduction to WPF

XAML Overview (WPF)

Plenty of Articles about WPF on CodeProject.

http://www.codeproject.com/KB/WPF/


这篇关于是否有可能将Windows项目实施为wpf项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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