Intersoft.Client.UI.Controls Namespace : ImageLoader Class |
<DescriptionAttribute("Provides a lightweight control for downloading image with or without download progress bar.")> <TemplatePartAttribute(Name="LoaderDefaultImageElement", Type=System.Windows.Controls.Image)> <TemplatePartAttribute(Name="ImageElementContainer", Type=System.Windows.Controls.Grid)> <TemplateVisualStateAttribute(Name="FadeIn", GroupName="FadingStates")> <TemplatePartAttribute(Name="LoaderElement", Type=Intersoft.Client.UI.Controls.UXProgressBar)> <TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)> <TemplatePartAttribute(Name="LoaderElementContainer", Type=System.Windows.Controls.Grid)> <StyleTypedPropertyAttribute(Property="LoaderStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXProgressBar)> <TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeOut")> <TemplatePartAttribute(Name="ImageElement", Type=System.Windows.Controls.Image)> Public Class ImageLoader Inherits Intersoft.Client.Framework.ISControl Implements Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing
Dim instance As ImageLoader
[DescriptionAttribute("Provides a lightweight control for downloading image with or without download progress bar.")] [TemplatePartAttribute(Name="LoaderDefaultImageElement", Type=System.Windows.Controls.Image)] [TemplatePartAttribute(Name="ImageElementContainer", Type=System.Windows.Controls.Grid)] [TemplateVisualStateAttribute(Name="FadeIn", GroupName="FadingStates")] [TemplatePartAttribute(Name="LoaderElement", Type=Intersoft.Client.UI.Controls.UXProgressBar)] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="LoaderElementContainer", Type=System.Windows.Controls.Grid)] [StyleTypedPropertyAttribute(Property="LoaderStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXProgressBar)] [TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeOut")] [TemplatePartAttribute(Name="ImageElement", Type=System.Windows.Controls.Image)] public class ImageLoader : Intersoft.Client.Framework.ISControl, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing
[DescriptionAttribute("Provides a lightweight control for downloading image with or without download progress bar.")] [TemplatePartAttribute(Name="LoaderDefaultImageElement", Type=System.Windows.Controls.Image)] [TemplatePartAttribute(Name="ImageElementContainer", Type=System.Windows.Controls.Grid)] [TemplateVisualStateAttribute(Name="FadeIn", GroupName="FadingStates")] [TemplatePartAttribute(Name="LoaderElement", Type=Intersoft.Client.UI.Controls.UXProgressBar)] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="LoaderElementContainer", Type=System.Windows.Controls.Grid)] [StyleTypedPropertyAttribute(Property="LoaderStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXProgressBar)] [TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeOut")] [TemplatePartAttribute(Name="ImageElement", Type=System.Windows.Controls.Image)] public ref class ImageLoader : public Intersoft.Client.Framework.ISControl, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing
ImageLoader is an innovative control that supports loading for embedded, internal and external image. The ImageLoader provides built-in features to show the image loading progress, which can be optionally disabled or further customized through property sets.
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(); } |
System.Object
System.Windows.DependencyObject
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
Intersoft.Client.Framework.ISControl
Intersoft.Client.UI.Controls.ImageLoader
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