Intersoft.Client.UI.Controls Namespace > ImageLoader Class : UseDefaultImage Property |
<CategoryAttribute("Common Properties")> Public Property UseDefaultImage As Boolean
Dim instance As ImageLoader Dim value As Boolean instance.UseDefaultImage = value value = instance.UseDefaultImage
[CategoryAttribute("Common Properties")] public bool UseDefaultImage {get; set;}
[CategoryAttribute("Common Properties")] public: property bool UseDefaultImage { bool get(); void set ( bool value); }
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"/> |
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