Wednesday, June 10, 2009

Silverlight and Xaml

XAML is an XML-based language that is used to define the visual assets of your application.this includes UI's graphical assets ,Animations,Media,Controls and more.It's designed as discussed earlier to bridge the gap between designers and developers when creating applications.The XAML used in silverlight differs from that of WPF it is asubset that is focussed on Web-Oriented features.Xaml uses XML to define the UI using XML elements.At the root of every Silverlight Document there is a container element,Such as a Canvaswhih defines the spae on which your UIwill be drawn.Here is an example given below:
<Canvas
Xmlns="
http://Schemas.microsoft.com/client/2007 "
Xmlns:X="
http://Schemas.microsoft.com/Winfx/2006/Xaml"
Width="640" Height="480"
Background="White">
</canvas>


No comments:

Post a Comment