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






Load the image specified in imagesource.

Syntax

Visual Basic (Declaration) 
Public Sub LoadImage() 
Visual Basic (Usage)Copy Code
Dim instance As ImageLoader
 
instance.LoadImage()
C# 
public void LoadImage()
Delphi 
public procedure LoadImage(); 
JScript 
public function LoadImage();
Managed Extensions for C++ 
public: void LoadImage(); 
C++/CLI 
public:
void LoadImage(); 

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 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.