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:
Wednesday, June 10, 2009
It supports number of shapes that can be combined together to form more complex objects.You'll find a lot of more details about using XAML now let me show the basic XAML shapes.
- Retangle:Allows you to define a rectangular shape on the screen.
- Ellipse: Allows you to define an ellipse or circle.
- Line: Draws a line connecting two points.
- Polygon:Draws a many-Sided shape.
- Polyline:Draws many line segments.
- Path: Allows you to create a non-linear path.
This allows points that define a 2D space to be animated as you change the properties ,You can do it in a linear manner,in which you would define a number of milestones along which the animation occursand it animates the value of a Point property between two target values by using linear interpolation over a specified Duration.