wpf Magnifier
Magnifier
First Adding Reference to WPF Toolkit Extended Assembly
Usage
Output
First Adding Reference to WPF Toolkit Extended Assembly
Usage
<Window x:Class="ExtendedWPF.Magnifier" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:wpfx="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended" Title="Magnifier" Height="349" Width="475"> <Grid> <wpfx:MagnifierManager.Magnifier> <wpfx:Magnifier BorderBrush="Red" BorderThickness="1" Radius="75" ZoomFactor=".3526" /> </wpfx:MagnifierManager.Magnifier> <TextBlock Margin="12,69,12,12" Foreground="Green">Wellcome to lesson 8 blog. this is test of the magnifier.</TextBlock> </Grid> </Window>
Properties
You can control the appearance of the Magnifier by setting some of the available properties.Name | Description |
---|---|
BorderBrush | Sets the color of the outer border of the Magnifier |
BorderThickness | Sets the thickness of the outer border of the Magnifier |
Radius | Sets the radius/size of the Magnifier |
ZoomFactor | Sets the amount to zoom into an element. The value ranges from 0.0 to 1.0. The smaller the number, the further zoomed in you are. 1.0 is normal text or 100% of orignial size, 0.0 is the most you can zoom in. |
Output
wpf Magnifier |
wpf Magnifier
Reviewed by Bhaumik Patel
on
11:14 PM
Rating: