This member is available in the WPF Express Edition. See the LEADTOOLS products page for full details on more WPF features available with LEADTOOLS toolkits.
Gets or sets the MagnifyGlass object used to perform Magnifying Glass operations for this BitmapSourceViewer.Visual Basic (Declaration) | |
---|---|
Public Property MagnifyGlass As MagnifyGlass |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public MagnifyGlass MagnifyGlass {get; set;} |
Managed Extensions for C++ | |
---|---|
public: __property MagnifyGlass* get_MagnifyGlass(); public: __property void set_MagnifyGlass( MagnifyGlass* value ); |
C++/CLI | |
---|---|
public: property MagnifyGlass^ MagnifyGlass { MagnifyGlass^ get(); void set (MagnifyGlass^ value); } |
XAML Attributes Usage | |
---|---|
<object MagnifyGlass= |
Dependency Property Information | |
---|---|
Identifier field | |
Metadata properties set to true | None |
XAML Property Element Usage | |
---|---|
<object> <object.MagnifyGlass> <MagnifyGlass .../> </object.MagnifyGlass> </object> |
Return Value
The MagnifyGlass object used to perform Magnifying Glass operations for this BitmapSourceViewer.This example lets you create your own custom magnifying glass. The custom magnify glass is drawn with a red "X" for the crosshair The border is a blue rectangle.
Visual Basic | Copy Code |
---|---|
Dim magnifyGlass As MagnifyGlass = New MagnifyGlass() |
C# | Copy Code |
---|---|
MagnifyGlass magnifyGlass = new MagnifyGlass(); |
XAML | Copy Code |
---|---|
<Window x:Class="WPFSamples.BitmapSourceViewer" Height="600" Width="800" Title="Interactive MagnifyGlass Sample" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Leadtools_Windows_Controls="clr-namespace:Leadtools.Windows.Controls;assembly=Leadtools.Windows.Controls"> |
You can derive your own class from MagnifyGlass, and then
set this property to an instance of that class to perform your own Magnifying Glass
processing (for example, change the way the crosshair is displayed).
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family