SmoothProgressBar Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Progress bar class to be used for progress controls displayed in Visual Studio WPF dialogs In addition to control styling specific to VisualStudio, the progress uses a smooth animation of the Value property if the TargetValue is set instead.
public ref class SmoothProgressBar : System::Windows::Controls::ProgressBar
public class SmoothProgressBar : System.Windows.Controls.ProgressBar
type SmoothProgressBar = class
inherit ProgressBar
Public Class SmoothProgressBar
Inherits ProgressBar
- Inheritance
-
SmoothProgressBar
Remarks
In addition to control styling specific to Visual Studio, the progress uses a smooth animation of the Value property if the TargetValue is set instead.
Constructors
SmoothProgressBar() |
Creates a new instance of the SmoothProgressBar class. |
Fields
AnimationMaximumDurationProperty |
Dependency property used to animate the Value property of the progress bar. The maximum time interval in milliseconds during which the progress is animated between the current Value and the TargetValue. Default = 1000ms |
TargetValueProperty |
Dependency property used to animate the Value property of the progress bar. Set TargetValue to a value and the progress value will be animated from the current value to the new value. |
Properties
AnimationMaximumDuration |
Gets or sets the maximum time interval, in milliseconds, during which the progress is animated between the current value and the target value. |
TargetValue |
Gets or sets the target value of the progress bar. The progress bar animates smoothly from its current value to the target value. |
Methods
InitializeProgress() |
Initialize progress bar and sets the value to its minimum value Call this function before starting to increment TargetValue. |