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>
Wednesday, June 10, 2009
Xaml Supports Shapes
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.
PointAnimation
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.
ColorAnimation
Animates the value of a Color property between two target values by using linear interpolation over a specified Duration and this allows colored properties,Such as fills,to be transformed.
DoubleAnimation
This Allows numeric properties,Such as those used to determine location,to be animated.
Animates the value of a Double between two target values by using linear interpolation over a specified Duration.
Animates the value of a Double between two target values by using linear interpolation over a specified Duration.
Xaml supports Animation
It Supports Animation through defining how their properties are changed over time using a timeline.These timelines are continued within a storyboard.Different Types of animation Include:
- DoubleAnimation.
- ColorAnimation.
- PointAnimation.
Alternative input & Accessibility-Features Of WPF
- WPF supports digital Ink-related functionality.
- WPF Microsoft UI Automation to allow developers to create accessible interfaces.
Subscribe to:
Posts (Atom)