Overview of XAML


XAML stands for Extensible Application Markup Language (XAML). It is a declarative language introduced by Microsoft. It is extensively used in windows phone to create Graphical User Interface objects. In simple words we can say that XAML is a front-end language like HTML to design GUI.
Where as in windows phone application development, C# is used as the back-end language so that the GUI objects will truly work as expected. 

XAML is used to create dynamic user interfaces and you can also use it to create complex screens as well as fluid and dynamic windows 8 user interfaces.

XAML Basics:

Controls used in XAML have several common properties. For example like ID tag in HTML elements, xaml provides a way to reference any control by using the syntax x: Name="". E.g. you have to display a school name then you could use this syntax: 

                                < TextBlock x: Name="school name"/>

The Name attribute is used with all xaml controls. If you want to access any control from the code then Name attribute is required otherwise it is not required.

Most of the xaml controls provide Brush objects that can be used to change Foreground and Background colors of the control.

<Button content= “Button” Foreground= “FFCC0520” Background= “FF126462”/>

There are many other attributes that can be used to modify the control over in the layout of the page, like padding, HorizontalAlignment, VerticalAlignment, Margin, visibility, Height, Width etc. 
Overview of XAML Overview of XAML Reviewed by Afsar Murad on 23:10 Rating: 5
Powered by Blogger.