Visual Basic (Declaration)
<TemplatePartAttribute(Name := "ProgressBarTrack", Type := GetType(FrameworkElement))> _
<TemplateVisualStateAttribute(Name := "Determinate", GroupName := "CommonStates")> _
<TemplateVisualStateAttribute(Name := "Indeterminate", GroupName := "CommonStates")> _
<TemplatePartAttribute(Name := "ProgressBarIndicator", Type := GetType(FrameworkElement))> _
Public Class ProgressBar _
Inherits RangeBase
Dim instance As ProgressBar
[TemplatePartAttribute(Name = "ProgressBarTrack", Type = typeof(FrameworkElement))]
[TemplateVisualStateAttribute(Name = "Determinate", GroupName = "CommonStates")]
[TemplateVisualStateAttribute(Name = "Indeterminate", GroupName = "CommonStates")]
[TemplatePartAttribute(Name = "ProgressBarIndicator", Type = typeof(FrameworkElement))]
public class ProgressBar : RangeBase
XAML Object Element Usage