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.
The zoom factor used to display the image. This is a dependency property.Visual Basic (Declaration) | |
---|---|
Public Property ScaleFactor As Double |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public double ScaleFactor {get; set;} |
Managed Extensions for C++ | |
---|---|
public: __property double get_ScaleFactor(); public: __property void set_ScaleFactor( double value ); |
XAML Attributes Usage | |
---|---|
<object ScaleFactor=double .../> |
Dependency Property Information | |
---|---|
Identifier field | |
Metadata properties set to true | AffectsMeasure, Inherits |
Return Value
The zoom factor used to display the image.This example zooms out on the image displayed in the viewer
Visual Basic | Copy Code |
---|---|
Public Sub BitmapSourceViewerElement_ScaleFactor(ByVal viewer As BitmapSourceViewerElement) |
C# | Copy Code |
---|---|
public void BitmapSourceViewerElement_ScaleFactor(BitmapSourceViewerElement viewer) |
XAML | Copy Code |
---|---|
<Window x:Class="WPFSamples.BitmapSourceViewerElement" Height="600" Width="800" 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 get and set this property when the SizeMode
property is PaintSizeMode.Normal.
This property is read only when the SizeMode property is set to any other value. When SizeMode is set to PaintSizeMode.Stretch, the zoom factor is the smallest of the Width or Height zoom factors (the aspect ratio is not preserved).
This property is read only when the SizeMode property is set to any other value. When SizeMode is set to PaintSizeMode.Stretch, the zoom factor is the smallest of the Width or Height zoom factors (the aspect ratio is not preserved).
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family