窗体和窗口之间的区别 [英] Difference between form and window

查看:95
本文介绍了窗体和窗口之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WPF中的窗体和窗口有什么区别?如果我创建一个表单,则将其命名为Form1.cs;如果我创建一个窗口,则将其命名为Window1.xaml,但是都可以设计.因此,何时使用表单以及何时使用窗口?

Hi what is the difference between form and window in wpf? If i create a form it is named as Form1.cs and if i create a window it is named as Window1.xaml but both can be designed. So When to use form and when to use window?

推荐答案

如果要创建Windows GUI应用程序,可以在Windows Forms和Windows Presentation Foundation(WPF)之间进行选择. ). WPF是使用.NET Framework 3.0建立的,它是一个库",具有2D,3D图形支持,若干文档支持,动画,视频支持以及and和...等功能,例如,当您必须创建一个具有2D或3D图形的Windows Forms应用程序(由于软件/硬件要求),您将另外需要一个支持此类图形的库,如DirectX,GDI或其他任何格式.

我建议阅读的文章是此文章
If you want to create a Windows GUI application you can choose between Windows Forms and the Windows Presentation Foundation (WPF). WPF was established with .NET Framework 3.0 and it is a "library" that comes with features like 2D-,3D-Graphics support, several Documents support, animations, video support and and and... For example when you have to create a Windows Forms application (because of software/hardware requirements) with 2D or 3D graphics you will need additionally a library that supports these kind of graphics like DirectX, GDI or whatever.

An article I would recommend reading is this one


这篇关于窗体和窗口之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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