Visual Basic (Declaration)
<TemplatePartAttribute(Name := "HorizontalLargeIncrease", Type := GetType(RepeatButton))> _
<TemplatePartAttribute(Name := "HorizontalSmallIncrease", Type := GetType(RepeatButton))> _
<TemplateVisualStateAttribute(Name := "Disabled", GroupName := "CommonStates")> _
<TemplatePartAttribute(Name := "VerticalSmallIncrease", Type := GetType(RepeatButton))> _
<TemplatePartAttribute(Name := "HorizontalRoot", Type := GetType(FrameworkElement))> _
<TemplatePartAttribute(Name := "HorizontalLargeDecrease", Type := GetType(RepeatButton))> _
<TemplatePartAttribute(Name := "HorizontalSmallDecrease", Type := GetType(RepeatButton))> _
<TemplatePartAttribute(Name := "HorizontalThumb", Type := GetType(Thumb))> _
<TemplatePartAttribute(Name := "VerticalRoot", Type := GetType(FrameworkElement))> _
<TemplatePartAttribute(Name := "VerticalLargeIncrease", Type := GetType(RepeatButton))> _
<TemplatePartAttribute(Name := "VerticalLargeDecrease", Type := GetType(RepeatButton))> _
<TemplateVisualStateAttribute(Name := "MouseOver", GroupName := "CommonStates")> _
<TemplatePartAttribute(Name := "VerticalSmallDecrease", Type := GetType(RepeatButton))> _
<TemplatePartAttribute(Name := "VerticalThumb", Type := GetType(Thumb))> _
<TemplateVisualStateAttribute(Name := "Normal", GroupName := "CommonStates")> _
Public NotInheritable Class ScrollBar _
Inherits RangeBase
Dim instance As ScrollBar
[TemplatePartAttribute(Name = "HorizontalLargeIncrease", Type = typeof(RepeatButton))]
[TemplatePartAttribute(Name = "HorizontalSmallIncrease", Type = typeof(RepeatButton))]
[TemplateVisualStateAttribute(Name = "Disabled", GroupName = "CommonStates")]
[TemplatePartAttribute(Name = "VerticalSmallIncrease", Type = typeof(RepeatButton))]
[TemplatePartAttribute(Name = "HorizontalRoot", Type = typeof(FrameworkElement))]
[TemplatePartAttribute(Name = "HorizontalLargeDecrease", Type = typeof(RepeatButton))]
[TemplatePartAttribute(Name = "HorizontalSmallDecrease", Type = typeof(RepeatButton))]
[TemplatePartAttribute(Name = "HorizontalThumb", Type = typeof(Thumb))]
[TemplatePartAttribute(Name = "VerticalRoot", Type = typeof(FrameworkElement))]
[TemplatePartAttribute(Name = "VerticalLargeIncrease", Type = typeof(RepeatButton))]
[TemplatePartAttribute(Name = "VerticalLargeDecrease", Type = typeof(RepeatButton))]
[TemplateVisualStateAttribute(Name = "MouseOver", GroupName = "CommonStates")]
[TemplatePartAttribute(Name = "VerticalSmallDecrease", Type = typeof(RepeatButton))]
[TemplatePartAttribute(Name = "VerticalThumb", Type = typeof(Thumb))]
[TemplateVisualStateAttribute(Name = "Normal", GroupName = "CommonStates")]
public sealed class ScrollBar : RangeBase
XAML Object Element Usage