| Course Others | You are Offering Professional Course | Locality Avinashi road |
XAML stands for Extensible Application Markup Language. It s a simple and declarative language based on XML.
In XAML, it very easy to create, initialize, and set properties of objects with hierarchical relations.
It is mainly used for designing GUIs, however it can be used for other purposes as well, e.g., to declare workflow in Workflow Foundation.
<Window
It is the opening object element or container of the root.
x:Class = "Resources.MainWindow"
It is a partial class declaration which connects the markup to the partial class code defined behind.
xmlns ="http://schemas.microsoft.com/win fx/2006/xaml/presentation"
Maps the default XAML namespace for WPF client/framework
xmlns:x ="http://schemas.microsoft.com/w infx/2006/xaml"
XAML namespace for XAML language which maps it to x: prefix
>
End of object element of the root
<Grid>
</Grid>
It is starting and closing tags of an empty grid object.
</Window>
Closing the object element
The syntax rules for XAML is almost similar to XML. If you look at an XAML document, then you will notice that it is actually a valid XML file, but an XML file is not necessarily an XAML file. It is because in XML, the value of the attributes must be a string while in XAML, it can be a different object which is known as Property element syntax.
The syntax of an Object element starts with a left angle bracket (<) followed by the name of an object, e.g. Button.
Define some Properties and attributes of that object element.
The Object element must be closed by a forward slash (/) followed immediately Why XAML in WPF
XAML is not only the most widely known feature of WPF, but it's also one of the most misunderstood features. If you have exposure to WPF, then you must have heard of XAML; but take a note of the following two less known facts about XAML
WPF doesn't need XAML
XAML doesn't need WPF
They are in fact separable pieces of technology.
it is clear that what you can do in XAML to create, initialize, and set properties of objects, the same tasks can also be done using code.
XAML is just another simple and easy way to design UI elements.
With XAML, it doesn t mean that what you can do to design UI elements is the only way. You can either declare the objects in XAML or define them using code.
XAML is optional, but despite this, it is at the heart of WPF design.
The goal of XAML is to enable visual designers to create user interface elements directly.
WPF aims to make it possible to control all visual aspects of the user interface from mark-up.
ADDRESS OF THE COMPANY
96,Hopes College Bus stop,
Opp. Krishna Sweets, Avinashi Road,
Peelamedu,Coimbatore.
Contact Name:Vedya
Contact Number:9360029290,9442173717