DiagramLite Programmer's Guide
Diagram.MagnifierStyle Property
See Also
 





Gets or sets the style of the magnifier tool. This is a dependency property.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight

 Syntax

C#  Copy Code

public Style MagnifierStyle { get; set; }

Visual Basic  Copy Code

Public Property MagnifierStyle As Style

 Property Value

A Silverlight Style instance.

 Remarks

The default magnifier style is shown below:

Xaml  Copy Code

<Style TargetType="local:Magnifier">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="local:Magnifier">
                <Grid>
                    <Ellipse Fill="{TemplateBinding Background}" />
                    <Ellipse x:Name="PART_Lens" />
                    <Ellipse Fill="CornflowerBlue" Opacity="0.3" />
                    <Ellipse Opacity="0.3">
                        <Ellipse.Fill>
                            <RadialGradientBrush>
                                <GradientStop Color="#00000000" Offset="0.0"/>
                                <GradientStop Color="#50000000" Offset="0.8"/>
                                <GradientStop Color="#C8000000" Offset="1.0"/>
                            </RadialGradientBrush>
                        </Ellipse.Fill>
                    </Ellipse>
                    <Ellipse Stroke="Black" StrokeThickness="4" />
                    <Ellipse Stroke="#333333" StrokeThickness="1" Margin="1" />
                </Grid>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
MagnifierFactor Property