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






Gets or sets a value that determine whether the default loader image should be used.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property UseDefaultImage As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ImageLoader
Dim value As Boolean
 
instance.UseDefaultImage = value
 
value = instance.UseDefaultImage
C# 
[CategoryAttribute("Common Properties")]
public bool UseDefaultImage {get; set;}
Delphi 
public read-write property UseDefaultImage: Boolean; 
JScript 
CategoryAttribute("Common Properties")
public function get,set UseDefaultImage : boolean
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property bool get_UseDefaultImage();
public: __property void set_UseDefaultImage( 
   bool value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property bool UseDefaultImage {
   bool get();
   void set (    bool 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.