Intersoft ClientUI Documentation
AutoLoad Property



Gets or sets a value that determines whether the image should be automatically downloaded when the object is registered into visual tree.
Syntax
<CategoryAttribute("Common Properties")>
Public Property AutoLoad As Boolean
Dim instance As ImageLoader
Dim value As Boolean
 
instance.AutoLoad = value
 
value = instance.AutoLoad
[CategoryAttribute("Common Properties")]
public bool AutoLoad {get; set;}
[CategoryAttribute("Common Properties")]
public:
property bool AutoLoad {
   bool get();
   void set (    bool value);
}
Remarks

By default, ImageLoader automatically loads the image specified in ImageSource property when the page is loaded. If you do not want to load the image directly, you can set the AutoLoad property to False. You can programmatically load the image in code by using LoadImage() API.

The following examples show how to use the ImageLoader control using XAML and code.

XAML
Copy Code
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
    <Intersoft:ImageLoader x:Name="Logo" Width="260" Height="61" ImageSource="http://www.intersoftpt.com/WebResources/Images/IntersoftSolutions_logo.png" AutoLoad="False"></Intersoft:ImageLoader>
    <Button Click="Button_Click" Content="Load Image" HorizontalAlignment="Center"></Button>
</StackPanel>    
C#
Copy Code
private void Button_Click(object sender, RoutedEventArgs e)
{
    this.Logo.LoadImage();
}
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

ImageLoader Class
ImageLoader Members

Concepts

ImageLoader

Send Feedback