Intersoft ClientUI Documentation
UXProgressBar Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Controls Namespace : UXProgressBar Class






Provides a lightweight control that indicates the progress of an operation.

Object Model

UXProgressBar Class

Syntax

Visual Basic (Declaration) 
<TemplateVisualStateAttribute(Name="Determinate", GroupName="CommonStates")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Indeterminate")>
<TemplatePartAttribute(Name="ProgressText", Type=System.Windows.Controls.TextBlock)>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<DescriptionAttribute("Provides a lightweight control that indicates the progress of an operation.")>
<TemplateVisualStateAttribute(GroupName="HighlightStates", Name="Highlight")>
<TemplateVisualStateAttribute(GroupName="HighlightStates", Name="Normal")>
<TemplatePartAttribute(Name="ProgressBarIndicator", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="IndeterminateGradientFill", Type=System.Windows.Shapes.Rectangle)>
<TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Shapes.Rectangle)>
<TemplatePartAttribute(Name="IndeterminateRoot", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="IndeterminateSolidFill", Type=System.Windows.Shapes.Rectangle)>
<TemplatePartAttribute(Name="HighlightElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="ProgressBarTrack", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="ProgressBarGradient", Type=System.Windows.Shapes.Rectangle)>
<TemplatePartAttribute(Name="ProgressBarRootGrid", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="DeterminateRoot", Type=System.Windows.Controls.Grid)>
Public Class UXProgressBar 
   Inherits Intersoft.Client.Framework.ISRangeControl
   Implements IControlIFramework, ILicensing 
Visual Basic (Usage)Copy Code
Dim instance As UXProgressBar
C# 
[TemplateVisualStateAttribute(Name="Determinate", GroupName="CommonStates")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Indeterminate")]
[TemplatePartAttribute(Name="ProgressText", Type=System.Windows.Controls.TextBlock)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Provides a lightweight control that indicates the progress of an operation.")]
[TemplateVisualStateAttribute(GroupName="HighlightStates", Name="Highlight")]
[TemplateVisualStateAttribute(GroupName="HighlightStates", Name="Normal")]
[TemplatePartAttribute(Name="ProgressBarIndicator", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="IndeterminateGradientFill", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="IndeterminateRoot", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="IndeterminateSolidFill", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="HighlightElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ProgressBarTrack", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ProgressBarGradient", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="ProgressBarRootGrid", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="DeterminateRoot", Type=System.Windows.Controls.Grid)]
public class UXProgressBar : Intersoft.Client.Framework.ISRangeControl, IControlIFramework, ILicensing  
Delphi 
public class UXProgressBar = class(Intersoft.Client.Framework.ISRangeControl, IControl, IFramework, ILicensing)
JScript 
TemplateVisualStateAttribute(Name="Determinate", GroupName="CommonStates")
TemplateVisualStateAttribute(GroupName="CommonStates", Name="Indeterminate")
TemplatePartAttribute(Name="ProgressText", Type=System.Windows.Controls.TextBlock)
TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)
DescriptionAttribute("Provides a lightweight control that indicates the progress of an operation.")
TemplateVisualStateAttribute(GroupName="HighlightStates", Name="Highlight")
TemplateVisualStateAttribute(GroupName="HighlightStates", Name="Normal")
TemplatePartAttribute(Name="ProgressBarIndicator", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="IndeterminateGradientFill", Type=System.Windows.Shapes.Rectangle)
TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Shapes.Rectangle)
TemplatePartAttribute(Name="IndeterminateRoot", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="IndeterminateSolidFill", Type=System.Windows.Shapes.Rectangle)
TemplatePartAttribute(Name="HighlightElement", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="ProgressBarTrack", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="ProgressBarGradient", Type=System.Windows.Shapes.Rectangle)
TemplatePartAttribute(Name="ProgressBarRootGrid", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="DeterminateRoot", Type=System.Windows.Controls.Grid)
public class UXProgressBar extends Intersoft.Client.Framework.ISRangeControl implements IControlIFramework, ILicensing 
Managed Extensions for C++ 
[TemplateVisualStateAttribute(Name="Determinate", GroupName="CommonStates")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Indeterminate")]
[TemplatePartAttribute(Name="ProgressText", Type=System.Windows.Controls.TextBlock)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Provides a lightweight control that indicates the progress of an operation.")]
[TemplateVisualStateAttribute(GroupName="HighlightStates", Name="Highlight")]
[TemplateVisualStateAttribute(GroupName="HighlightStates", Name="Normal")]
[TemplatePartAttribute(Name="ProgressBarIndicator", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="IndeterminateGradientFill", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="IndeterminateRoot", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="IndeterminateSolidFill", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="HighlightElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ProgressBarTrack", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ProgressBarGradient", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="ProgressBarRootGrid", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="DeterminateRoot", Type=System.Windows.Controls.Grid)]
public __gc class UXProgressBar : public Intersoft.Client.Framework.ISRangeControl, IControlIFramework, ILicensing  
C++/CLI 
[TemplateVisualStateAttribute(Name="Determinate", GroupName="CommonStates")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Indeterminate")]
[TemplatePartAttribute(Name="ProgressText", Type=System.Windows.Controls.TextBlock)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Provides a lightweight control that indicates the progress of an operation.")]
[TemplateVisualStateAttribute(GroupName="HighlightStates", Name="Highlight")]
[TemplateVisualStateAttribute(GroupName="HighlightStates", Name="Normal")]
[TemplatePartAttribute(Name="ProgressBarIndicator", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="IndeterminateGradientFill", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="IndeterminateRoot", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="IndeterminateSolidFill", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="HighlightElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ProgressBarTrack", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ProgressBarGradient", Type=System.Windows.Shapes.Rectangle)]
[TemplatePartAttribute(Name="ProgressBarRootGrid", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="DeterminateRoot", Type=System.Windows.Controls.Grid)]
public ref class UXProgressBar : public Intersoft.Client.Framework.ISRangeControl, IControlIFramework, ILicensing  

Remarks

UXProgressBar is used to indicate a progress based on the specified Value. Note that when you resize the control at runtime, for example due to window resize, the progress bar automatically adjusts the size relative to its dimension.

Changing the Value property also affects the progress text. You can format the progress text through the Text property. The {0} placeholder will be replaced with the actual progress value.

XAML Copy Code
<Intersoft:UXProgressBar Height="20" Width="150" Text="{}{0} %" Value="50"/>

Some progress is indeterminate, the best way to give indication is using indeterminate mode by setting the IsIndeterminate property to true.

XAML Copy Code
<Intersoft:UXProgressBar Height="20" Width="150" IsIndeterminate="True"/>

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.Primitives.RangeBase
                  Intersoft.Client.Framework.ISRangeControl
                     Intersoft.Client.UI.Controls.UXProgressBar

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.