LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly)
LEAD Technologies, Inc

Source Property (ImageBox)






Gets or sets the System.Windows.Media.ImageSource to be displayed in this control. This is a dependency property. .NET support Silverlight support
Syntax
public ImageSource Source {get; set;}
'Declaration
 
Public Property Source As ImageSource
'Usage
 
Dim instance As ImageBox
Dim value As ImageSource
 
instance.Source = value
 
value = instance.Source
public ImageSource Source {get; set;}
 get_Source();
set_Source(value);
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).
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 ImageBox.

For C#/VB examples, refer to ImageBox.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ImageBox Class
ImageBox Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.