Intersoft ClientUI Documentation
DefaultImageSource Property
See Also  Send Feedback
Intersoft.Client.UI.Controls Namespace > ImageLoader Class : DefaultImageSource Property






Gets or sets the loader default image source.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property DefaultImageSource As ImageSource
Visual Basic (Usage)Copy Code
Dim instance As ImageLoader
Dim value As ImageSource
 
instance.DefaultImageSource = value
 
value = instance.DefaultImageSource
C# 
[CategoryAttribute("Common Properties")]
public ImageSource DefaultImageSource {get; set;}
Delphi 
public read-write property DefaultImageSource: ImageSource; 
JScript 
CategoryAttribute("Common Properties")
public function get,set DefaultImageSource : ImageSource
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property ImageSource* get_DefaultImageSource();
public: __property void set_DefaultImageSource( 
   ImageSource* value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property ImageSource^ DefaultImageSource {
   ImageSource^ get();
   void set (    ImageSource^ value);
}

Remarks

When an image is being loaded, a progresss bar is displayed to show the download progress in real-time. In some scenarios, you may want to display an image along with the progress bar to enhance the user interface. This scenario can be achieved by using the default image feature, which is shown along with the image. The default image works in conjunction with the progress bar.

To enable this default image, you set the UseDefaultImage property to True, and then set the DefaultImageSource property to an image source. It is recommended to use an image within your project rather than an external image for a better user experience.

XAML Copy Code
<Intersoft:ImageLoader Height="100" Width="100" ImageSource="www.mywebsite.com/photo1.jpg" UseDefaultImage="True" DefaultImageSource="LoaderImage.png"/>

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.