←Select platform

Source Property

Summary

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

Syntax

C#
VB
C++
public ImageSource Source { get; set; } 
  
Public Property Source As ImageSource 
public: 
property ImageSource^ Source { 
   ImageSource^ get(); 
   void set (    ImageSource^ ); 
} 

Property Value

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

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.

Example

For XAML example, refer to ImageViewer.

For C#/VB examples, refer to ImageViewer.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.Controls Assembly