Ghost1372

everything can be handy

Magnifier

With the help of Magnifier, any control can be partially magnified.

1
2
[TemplatePart(Name = ElementVisualBrush, Type = typeof(VisualBrush))]
public class Magnifier : AdornerElement

Attributes

Property Description Default Value Remarks
HorizontalOffset Horizontal offset relative to the mouse 0
VerticalOffset Vertical offset relative to the mouse 0
Scale Scale factor 5.0

Case

1
<Image Margin="16" hc:Magnifier.Instance="{x:Static hc:Magnifier.Default}" Source="/HandyControlDemo;component/Resources/Img/b1.jpg" Stretch="None"/>
1
2
3
4
5
6
<Image Margin="16" Source="/HandyControlDemo;component/Resources/Img/b1.jpg" Stretch="None">
<hc:Magnifier.Instance>
<hc:Magnifier Scale="6" HorizontalOffset="-16" VerticalOffset="-16"/>
</hc:Magnifier.Instance>
</Image>

Magnifier

0%