LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
Source Property
See Also 
Leadtools.Windows.Controls Namespace > ImageViewer Class : Source Property



Gets or sets the System.Windows.Media.ImageSource to be displayed in this control. This is a dependency property. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property Source As ImageSource
Visual Basic (Usage)Copy Code
Dim instance As ImageViewer
Dim value As ImageSource
 
instance.Source = value
 
value = instance.Source
C# 
public ImageSource Source {get; set;}
C++/CLI 
public:
property ImageSource^ Source {
   ImageSource^ get();
   void set (    ImageSource^ value);
}

Property Value

The source of the drawn image. The default value is a null reference (Nothing in Visual Basic).

Example

For XAML example, refer to ImageViewer.

For C#/VB examples, refer to ImageViewer.

Remarks

When the value of the Source property changes to a valid image, the values of SourceDpiX and SourceDpiY will be populated by the image resolution.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also