官术网_书友最值得收藏!

XAML basic concepts

Now that we have taken our first steps with Silverlight, let's have a quick introduction to some basic concepts in XAML.

What is XAML?

Extensible Application Markup Language (XAML) is a declarative language. Specifically, XAML can initialize objects and set properties of objects, using a language structure that shows hierarchical relationships between multiple objects, and uses a backing type convention that supports extension of types. You can create visible user interface (UI) elements in the declarative XAML markup. You can then use a separate Code-Behind file to respond to events and manipulate the objects you declare in XAML (For more information on XAML, you can take a look at http://msdn.microsoft.com/en-us/library/cc189036(v=vs.95).aspx).

The advantages of XAML when compared to HTML are as follows:

  • XAML is a modern language, adapted to the current needs of users and implemented from scratch (whereas HTML suffers from organic growth)
  • We have only one way to implement it, which avoids us headaches derived from the problems of adaptation with different browsers and their versions
  • There is a clear differentiation between declarative (XAML) and business logic/code parts (.cs Code-Behind)

The best you can do is try it and see for yourself.

主站蜘蛛池模板: 青海省| 清远市| 长宁县| 新平| 乐山市| 怀仁县| 新闻| 高安市| 金塔县| 即墨市| 个旧市| 北宁市| 深圳市| 巍山| 克什克腾旗| 奎屯市| 星子县| 公安县| 石阡县| 黄陵县| 乌拉特后旗| 凌源市| 南和县| 通榆县| 漳平市| 太湖县| 阳原县| 临沧市| 大庆市| 道真| 五原县| 岫岩| 西乌| 苍梧县| 鱼台县| 黑河市| 柞水县| 五指山市| 池州市| 务川| 桐城市|