Windows Presentation基础 [英] Windows Presentation foundation

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

问题描述

Wpf如何与XAML相关。请帮助我,我是WPF的新手

解决方案

XAML代表可扩展应用程序标记语言。它是一种基于XML的简单语言,用于创建和初始化具有层次关系的.NET对象。它最初是为WPF发明的,它可以用来创建任何类型的对象树。



今天XAML用于在WPF,Silverlight中创建用户界面,声明工作流程在WF和XPS标准中的电子纸。



WPF中的所有类都具有无参数构造函数并过度使用属性。这样做是为了使它非常适合像XAML这样的XML语言。





wpftutorial [ ^ ]

参考 -

1. WPF中的XAML [ ^ ]

2. 可扩展应用程序标记语言 [ ^ ]

3. WPF简介 [ ^ ]

Quote:

可扩展应用程序标记语言(XAML)是声明性应用程序编程的标记语言。 Windows Presentation Foundation(WPF)实现了一个XAML处理器实现,并提供XAML语言支持。实现WPF类型,以便它们可以为XAML表示提供所需的类型支持。通常,您可以在XAML标记中创建大部分WPF应用程序UI。





参考 - WPF导览 - 第1部分(XAML) [ ^ ]

Quote:

XAML代表可扩展应用程序标记语言。它是一种基于XML的通用语言,用于声明在运行时实例化的对象图。 WPF开发人员使用XAML来声明用户界面(UI)的布局以及该UI中使用的资源。



它完全没有在WPF中编程时使用XAML所必需的。在XAML中可以完成的任何事情也可以在代码中完成。使用XAML使得许多UI开发场景变得更加容易和快捷,例如创建UI的布局以及配置样式,模板以及本系列后面讨论的其他WPF特定实体


How Wpf is related to XAML.Please help me i am new in WPF

解决方案

XAML stands for Extensible Application Markup Language. Its a simple language based on XML to create and initialize .NET objects with hierarchical relations. Altough it was originally invented for WPF it can by used to create any kind of object trees.

Today XAML is used to create user interfaces in WPF, Silverlight, declare workflows in WF and for electronic paper in the XPS standard.

All classes in WPF have parameterless constructors and make excessive usage of properties. That is done to make it perfectly fit for XML languages like XAML.


wpftutorial[^]


Refer -
1. XAML in WPF[^]
2. Extensible Application Markup Language[^]
3. Introduction to WPF[^]

Quote:

Extensible Application Markup Language (XAML) is a markup language for declarative application programming. Windows Presentation Foundation (WPF) implements aXAML processor implementation, and provides XAML language support. The WPF types are implemented such that they can provide the required type backing for a XAML representation. In general, you can create the majority of your WPF application UI in XAML markup.



Refer- A Guided Tour of WPF – Part 1 (XAML)[^]

Quote:

XAML stands for eXtensible Application Markup Language. It is an all-purpose XML-based language used for declaring object graphs, which are instantiated at runtime. XAML is used by WPF developers to declare the layout of a user interface (UI), and the resources used in that UI.

It is not at all necessary to use XAML when programming in WPF. Anything that can be done in XAML can also be done in code. Using XAML makes many UI development scenarios much easier and faster, such as creating the layout of a UI and configuring styles, templates, and other WPF-specific entities discussed later in this series.


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

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