←Select platform

Source Property

Summary

Gets or sets the image associated with this ImageListItem object. 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

An System.Windows.Media.ImageSource object associated with this ImageListItem object. Default value is null (Nothing in VB).

Remarks

The ImageList control will draw this image onto the item surface. If the item does not have an image, the value of this property is null (Nothing in VB) and, nothing is drawn.

You can set the Source property directly with the item image or you can set the Uri property with the path to the image and let the control load the image.

Example

For XAML example, refer to ImageList.

For C#/VB examples, refer to ImageList.

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