Visual Basic (Declaration) | |
---|---|
Public Property ScaleFactor As Double |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public double ScaleFactor {get; set;} |
XAML Attributes Usage | |
---|---|
<object ScaleFactor=double .../> |
Dependencies Property Information | |
---|---|
Identifier field |
XAML Attributes Usage | |
---|---|
<object ScaleFactor=double .../> |
Dependencies Property Information | |
---|---|
Identifier field |
Return Value
The zoom factor used to display the image.
You can get and set this property when the SizeMode
property is PaintSizeMode.Normal.
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).
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 Server 2003 family, Windows Server 2008 family