What is Clipping in Silverlight?

What is Clipping in Silverlight?

Clipping is a modification to a given image / object based on the geometry type – like a line, rectangle, ellipse or even a group geometry objects. The clip property is defined in the UIElement class. An XAML code is used for an Image object for displaying a geometrical image.

The following is the code snippet for setting the Ellipse properties.
<Image Source="Nature.jpg" Width="350" Height="350">
<Image.Clip>
<EllipseGeometry RadiusX="100" RadiusY="100" Center="200,150"/>
</Image.Clip>
</Image>
What is the parent xaml tag of Silverlight page?
The’UserConrol’ is the parent xaml tag of a Silverlight page. All other tags are authored under UserControl tag. Developers are given a facility to implement new custom controls and create re-usable user controls...
How to change the default page of the Silverlight?
The RootVisual property of Application_Startup event in App.xaml file needs to be set to change the default Silverlight application page. The following code snippet sets the property...
xaml files - Silverlight
xaml files - There are two xaml files are created when a new project in Silverlight is created through Visual Studio...
Post your comment