Represents a control that allows a user to magnify parts of an application.
The following example adds a Magnifier to the parent grid of a Window. Everything contained in Grid can be magnified.
<Window x:Class="WPFToolkit.Extended.Samples.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
Title="MainWindow" Height="350" Width="525" >
<Grid>
<xctk:MagnifierManager.Magnifier>
<xctk:Magnifier Radius="100" ZoomFactor=".4" />
</xctk:MagnifierManager.Magnifier>
<RichTextBox />
</Grid>
</Window>
The following attaches a Magnifier to a Grid using a Radius of 75, a red boder that is 1 pixel thick, and a ZoomFactor of 0.3526.
<Window x:Class="WPFToolkit.Extended.Samples.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
Title="MainWindow" Height="350" Width="525" >
<Grid>
<xctk:MagnifierManager.Magnifier>
<xctk:Magnifier BorderBrush="Red"
BorderThickness="1"
Radius="75"
ZoomFactor=".3526" />
</xctk:MagnifierManager.Magnifier>
<RichTextBox />
</Grid>
</Window>
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2