BinaryRibbonScrollViewer
The scroll viewer the ribbon uses inside its own drop-downs, with scroll bars drawn in the colours of the ribbon's skin.
public class BinaryRibbonScrollViewer : ScrollViewer
Inherits from / implements: ScrollViewer
Remarks
It behaves exactly as a ScrollViewer; it is a type of its own so that the ribbon's
resources can give it a template of their own. Use it in content of your own – a drop-down panel,
say – to match the ribbon.
The scroll bar colours come from the ScrollViewer... keys of
BinaryRibbonThemeResources, such as
BinaryRibbonThemeResources.ScrollViewerVerticalScrollbarThumbBackgroundBrushKey, which
each built-in skin sets.
The dictionary that styles this control, which a BinaryRibbonBarPanel
merges into the application's resources when its template is applied, also holds an implicit style
for ScrollBar. Every scroll bar in the application
that has no style of its own then takes the ribbon's look.
Members at a glance
| Methods | |
|---|---|
OnApplyTemplate | Applies the new template, as ScrollViewer does. |
Methods
OnApplyTemplate
Applies the new template, as ScrollViewer does.