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

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.

主站蜘蛛池模板: 茌平县| 绥化市| 衡山县| 东乡族自治县| 甘泉县| 双鸭山市| 江永县| 祥云县| 陇南市| 聊城市| 长海县| 景洪市| 马龙县| 济南市| 浮梁县| 金堂县| 临潭县| 巩留县| 三门县| 凤翔县| 辽阳县| 肥城市| 呈贡县| 高尔夫| 重庆市| 旌德县| 望谟县| 定州市| 石门县| 班玛县| 宁乡县| 阿瓦提县| 奇台县| 石柱| 曲阜市| 双鸭山市| 师宗县| 铜川市| 大化| 信丰县| 方正县|