Class ScrollBarChrome
Creates a theme-specific look for ScrollBar elements.
Inheritance
Implements
Inherited Members
Namespace: PresentationTheme.Aero.Win10
Assembly: PresentationTheme.Aero.Win10.dll
Syntax
[TemplateVisualState(GroupName = "CommonStates", Name = "Normal")]
[TemplateVisualState(GroupName = "CommonStates", Name = "Disabled")]
[TemplateVisualState(GroupName = "CommonStates", Name = "MouseOver")]
[TemplateVisualState(GroupName = "CommonStates", Name = "Pressed")]
[TemplateVisualState(GroupName = "CommonStates", Name = "Hover")]
public class ScrollBarChrome : Decorator, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild
Remarks
The actual appearance of ScrollBar elements is dependent on which theme is active on the user's system. The properties of this class allow WPF to set the appearance based on the current theme.
Fields
| Improve this Doc View SourceBackgroundProperty
Identifies the Background dependency property.
Declaration
public static readonly DependencyProperty BackgroundProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
DarkBorderBrushProperty
Identifies the DarkBorderBrush dependency property.
Declaration
public static readonly DependencyProperty DarkBorderBrushProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
LightBorderBrushProperty
Identifies the LightBorderBrush dependency property.
Declaration
public static readonly DependencyProperty LightBorderBrushProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
OrientationProperty
Identifies the Orientation dependency property.
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ParentElementProperty
Identifies the ParentElement dependency property.
Declaration
public static readonly DependencyProperty ParentElementProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RenderHoverProperty
Identifies the RenderHover dependency property.
Declaration
public static readonly DependencyProperty RenderHoverProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceBackground
Gets or sets the background Brush.
Declaration
public Brush Background { get; set; }
Property Value
Type | Description |
---|---|
Brush | The Brush that draws the background. This property has no default value. |
Remarks
Dependency Property Information
Identifier field | BackgroundProperty |
Metadata properties set to true | AffectsRender, SubPropertiesDoNotAffectRender |
DarkBorderBrush
Gets or sets the dark border Brush.
Declaration
public Brush DarkBorderBrush { get; set; }
Property Value
Type | Description |
---|---|
Brush | The Brush for the dark border. This property has no default value. |
Remarks
Dependency Property Information
Identifier field | DarkBorderBrushProperty |
Metadata properties set to true | AffectsRender, SubPropertiesDoNotAffectRender |
LightBorderBrush
Gets or sets the light border Brush.
Declaration
public Brush LightBorderBrush { get; set; }
Property Value
Type | Description |
---|---|
Brush | The Brush for the light border. This property has no default value. |
Remarks
Dependency Property Information
Identifier field | LightBorderBrushProperty |
Metadata properties set to true | AffectsRender, SubPropertiesDoNotAffectRender |
Orientation
Gets or sets the orientation of the scrollbar chrome.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
Orientation | An Orientation enumeration value that defines whether the ScrollBarChrome is displayed horizontally or vertically. The default is Horizontal. |
Remarks
Dependency Property Information
Identifier field | OrientationProperty |
Metadata properties set to true | AffectsMeasure |
ParentElement
Gets or sets the parent FrameworkElement.
Declaration
public FrameworkElement ParentElement { get; set; }
Property Value
Type | Description |
---|---|
FrameworkElement |
Remarks
Dependency Property Information
Identifier field | ParentElementProperty |
Metadata properties set to true | AffectsRender |
RenderHover
Gets or sets a value indicating whether the scrollbar chrome should render a hover state.
Declaration
public bool RenderHover { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true if the scrollbar chrome appears in a hover state; otherwise false. |
Remarks
Dependency Property Information
Identifier field | RenderHoverProperty |
Metadata properties set to true | AffectsRender |
Methods
| Improve this Doc View SourceArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
Size | finalSize |
Returns
Type | Description |
---|---|
Size |
Overrides
| Improve this Doc View SourceChangeVisualState(Boolean)
Changes the visual state of the scrollbar chrome.
Declaration
protected virtual void ChangeVisualState(bool useTransitions)
Parameters
Type | Name | Description |
---|---|---|
Boolean | useTransitions | true to use a VisualTransition object to transition between states; otherwise false. |
See Also
| Improve this Doc View SourceMeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
Type | Name | Description |
---|---|---|
Size | constraint |
Returns
Type | Description |
---|---|
Size |
Overrides
| Improve this Doc View SourceOnRender(DrawingContext)
Declaration
protected override void OnRender(DrawingContext dc)
Parameters
Type | Name | Description |
---|---|---|
DrawingContext | dc |