Customizing the Magnifier With Styles
The Magnifier control can be skinned using the standard Silverlight 2 method of setting Styles in the App.xaml file of your Silverlight project.
You need to login to Download the default Magnifier styles, If you do not have a login you can register for free!
Example of how to Apply a Skin to the Magnifier
These styles are placed in your XAML and referred to using the Style property:
<Style TargetType="local:Magnifier">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:Magnifier">
<Canvas x:Name="RootElement">
<ContentControl x:Name="ElementWhole" Content="{TemplateBinding Content}" />
<Popup x:Name="ElementMagnifier" IsOpen="False">
<Canvas>
<ContentControl Content="{TemplateBinding MagnifierContent}" IsHitTestVisible="False">
<ContentControl.RenderTransform>
<ScaleTransform x:Name="ElementScale" />
</ContentControl.RenderTransform>
<ContentControl.Clip>
<RectangleGeometry x:Name="ElementClipGeometry" />
</ContentControl.Clip>
</ContentControl>
<ContentControl x:Name="ElementCover" Content="{TemplateBinding CoverContent}" IsHitTestVisible="False">
</ContentControl>
</Canvas>
</Popup>
</Canvas>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
As you can see, styling is a powerful method of customizing the controls to suite the look and feel of your Silverlight application.