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).For XAML example, refer to ImageViewer.
For C#/VB examples, refer to ImageViewer.
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.
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family