ScrollChrome Class
Represents a chrome for use with scroll bars.
public sealed class ScrollChrome : ElementChrome, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild
- Inheritance:
- Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Decorator ChromeBase ElementChrome Object
Constructors
ScrollChrome()
public ScrollChrome()
Properties
Glyph
Gets or sets the glyph to be rendered by the chrome. This is a dependency property.
public ScrollChromeGlyph Glyph { get; set; }
Property Value
- ScrollChromeGlyph:
The glyph to be rendered by the chrome. The default value is
None
.
GlyphBackground
Gets or sets the brush used to render the glyph background of the ScrollChrome is in the normal state. This is a dependency property.
public Brush GlyphBackground { get; set; }
Property Value
- Brush:
The brush used to render the glyph background of the ScrollChrome is in the normal state. The default value is null.
GlyphBackgroundDisabled
Gets or sets the brush used to render the glyph background of the ScrollChrome is in the disabled state. This is a dependency property.
public Brush GlyphBackgroundDisabled { get; set; }
Property Value
- Brush:
The brush used to render the glyph background of the ScrollChrome is in the disabled state. The default value is null.
GlyphBackgroundHover
Gets or sets the brush used to render the glyph background of the ScrollChrome is in the hover state. This is a dependency property.
public Brush GlyphBackgroundHover { get; set; }
Property Value
- Brush:
The brush used to render the glyph background of the ScrollChrome is in the hover state. The default value is null.
GlyphBackgroundPressed
Gets or sets the brush used to render the glyph background of the ScrollChrome is in the pressed state. This is a dependency property.
public Brush GlyphBackgroundPressed { get; set; }
Property Value
- Brush:
The brush used to render the glyph background of the ScrollChrome is in the pressed state. The default value is null.
GlyphHighlight
Gets or sets the brush used to render the glyph highlight of the ScrollChrome is in the pressed state. This is a dependency property.
public Brush GlyphHighlight { get; set; }
Property Value
- Brush:
The brush used to render the glyph highlight of the ScrollChrome is in the pressed state. The default value is null.
GlyphHighlightDisabled
Gets or sets the brush used to render the glyph highlight of the ScrollChrome is in the disabled state. This is a dependency property.
public Brush GlyphHighlightDisabled { get; set; }
Property Value
- Brush:
The brush used to render the glyph highlight of the ScrollChrome is in the disabled state. The default value is null.
GlyphHighlightHover
Gets or sets the brush used to render the glyph highlight of the ScrollChrome is in the hover state. This is a dependency property.
public Brush GlyphHighlightHover { get; set; }
Property Value
- Brush:
The brush used to render the glyph highlight of the ScrollChrome is in the hover state. The default value is null.
GlyphHighlightPressed
Gets or sets the brush used to render the glyph highlight of the ScrollChrome is in the pressed state. This is a dependency property.
public Brush GlyphHighlightPressed { get; set; }
Property Value
- Brush:
The brush used to render the glyph highlight of the ScrollChrome is in the pressed state. The default value is null.
UseAlternateGeometry
Gets or sets a value indicating whether the chrome should use an alternate geometry. This is a dependency property.
public bool UseAlternateGeometry { get; set; }
Property Value
- Boolean:
true
if the chrome should use an alternate geometry; otherwise,false
. The default value isfalse
.
Methods
ArrangeOverride(Size)
Arranges the content of the ElementChrome element.
protected override Size ArrangeOverride(Size arrangeSize)
Parameter | Type | Description |
---|---|---|
arrangeSize | Size | The Size this element uses to arrange its child content. |
Returns
- Size:
The Size that represents the arranged size of this ElementChrome element and its child.
GetGlyph(DependencyObject)
Gets the value of the Glyph
attached property for the specified object.
public static ScrollChromeGlyph GetGlyph(DependencyObject obj)
Parameter | Type | Description |
---|---|---|
obj | DependencyObject | The object from which the property value is read. |
Returns
- ScrollChromeGlyph:
The object's value.
MeasureOverride(Size)
Measures the child element of the ElementChrome to prepare for arranging it during the arrange pass.
protected override Size MeasureOverride(Size availableSize)
Parameter | Type | Description |
---|---|---|
availableSize | Size | An upper limit Size that should not be exceeded. |
Returns
OnRender(DrawingContext)
Renders the ScrollChrome using the various settings.
protected override void OnRender(DrawingContext drawingContext)
Parameter | Type | Description |
---|---|---|
drawingContext | DrawingContext | The drawing instructions for a specific element. This context is provided to the layout system. |
SetGlyph(DependencyObject, ScrollChromeGlyph)
Sets the value of the Glyph
attached property to the specified object.
public static void SetGlyph(DependencyObject obj, ScrollChromeGlyph value)
Parameter | Type | Description |
---|---|---|
obj | DependencyObject | The object to which the attached property is written. |
value | ScrollChromeGlyph | The value to set. |
Fields
GlyphBackgroundDisabledProperty
Identifies the GlyphBackgroundDisabled dependency property. This field is read-only.
public static readonly DependencyProperty GlyphBackgroundDisabledProperty
GlyphBackgroundHoverProperty
Identifies the GlyphBackgroundHover dependency property. This field is read-only.
public static readonly DependencyProperty GlyphBackgroundHoverProperty
GlyphBackgroundPressedProperty
Identifies the GlyphBackgroundPressed dependency property. This field is read-only.
public static readonly DependencyProperty GlyphBackgroundPressedProperty
GlyphBackgroundProperty
Identifies the GlyphBackground dependency property. This field is read-only.
public static readonly DependencyProperty GlyphBackgroundProperty
GlyphHighlightDisabledProperty
Identifies the GlyphHighlightDisabled dependency property. This field is read-only.
public static readonly DependencyProperty GlyphHighlightDisabledProperty
GlyphHighlightHoverProperty
Identifies the GlyphHighlightHover dependency property. This field is read-only.
public static readonly DependencyProperty GlyphHighlightHoverProperty
GlyphHighlightPressedProperty
Identifies the GlyphHighlightPressed dependency property. This field is read-only.
public static readonly DependencyProperty GlyphHighlightPressedProperty
GlyphHighlightProperty
Identifies the GlyphHighlight dependency property. This field is read-only.
public static readonly DependencyProperty GlyphHighlightProperty
GlyphProperty
Identifies the Glyph dependency prcoperty. This field is read-only.
public static readonly DependencyProperty GlyphProperty
UseAlternateGeometryProperty
Identifies the UseAlternateGeometry dependency property. This field is read-only.
public static readonly DependencyProperty UseAlternateGeometryProperty
Inherited Members
- ElementChrome.BackgroundProperty
- ElementChrome.BackgroundCheckedProperty
- ElementChrome.BackgroundDefaultedProperty
- ElementChrome.BackgroundDisabledProperty
- ElementChrome.BackgroundFocusedProperty
- ElementChrome.BackgroundHoverProperty
- ElementChrome.BackgroundPressedProperty
- ElementChrome.BorderBrushProperty
- ElementChrome.BorderBrushCheckedProperty
- ElementChrome.BorderBrushDefaultedProperty
- ElementChrome.BorderBrushDisabledProperty
- ElementChrome.BorderBrushFocusedProperty
- ElementChrome.BorderBrushHoverProperty
- ElementChrome.BorderBrushPressedProperty
- ElementChrome.BorderStyleProperty
- ElementChrome.BorderThicknessProperty
- ElementChrome.CornerRadiusProperty
- ElementChrome.HighlightProperty
- ElementChrome.HighlightCheckedProperty
- ElementChrome.HighlightDefaultedProperty
- ElementChrome.HighlightDisabledProperty
- ElementChrome.HighlightFocusedProperty
- ElementChrome.HighlightHoverProperty
- ElementChrome.HighlightPressedProperty
- ElementChrome.InnerBorderBrushProperty
- ElementChrome.InnerBorderBrushCheckedProperty
- ElementChrome.InnerBorderBrushDefaultedProperty
- ElementChrome.InnerBorderBrushDisabledProperty
- ElementChrome.InnerBorderBrushFocusedProperty
- ElementChrome.InnerBorderBrushHoverProperty
- ElementChrome.InnerBorderBrushPressedProperty
- ElementChrome.InnerBorderThicknessProperty
- ElementChrome.LastStateProperty
- ElementChrome.PaddingProperty
- ElementChrome.StateProperty
- ElementChrome.Background
- ElementChrome.BackgroundChecked
- ElementChrome.BackgroundDefaulted
- ElementChrome.BackgroundDisabled
- ElementChrome.BackgroundFocused
- ElementChrome.BackgroundHover
- ElementChrome.BackgroundPressed
- ElementChrome.BorderBrush
- ElementChrome.BorderBrushChecked
- ElementChrome.BorderBrushDefaulted
- ElementChrome.BorderBrushDisabled
- ElementChrome.BorderBrushFocused
- ElementChrome.BorderBrushHover
- ElementChrome.BorderBrushPressed
- ElementChrome.BorderStyle
- ElementChrome.BorderThickness
- ElementChrome.CornerRadius
- ElementChrome.Highlight
- ElementChrome.HighlightChecked
- ElementChrome.HighlightDefaulted
- ElementChrome.HighlightDisabled
- ElementChrome.HighlightFocused
- ElementChrome.HighlightHover
- ElementChrome.HighlightPressed
- ElementChrome.InnerBorderBrush
- ElementChrome.InnerBorderBrushChecked
- ElementChrome.InnerBorderBrushDefaulted
- ElementChrome.InnerBorderBrushDisabled
- ElementChrome.InnerBorderBrushFocused
- ElementChrome.InnerBorderBrushHover
- ElementChrome.InnerBorderBrushPressed
- ElementChrome.InnerBorderThickness
- ElementChrome.LastState
- ElementChrome.Padding
- ElementChrome.State
- ChromeBase.IsAnimationEnabledProperty
- ChromeBase.IsAnimationEnabled
- ChromeBase.IsAnimationEnabledResolved
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()