Dela via


RibbonScrollButtonVisibilityConverter Class

Converts a scroll bar visibility and scroll position to Visibility values.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Controls.Ribbon.Primitives.RibbonScrollButtonVisibilityConverter

Namespace:  Microsoft.Windows.Controls.Ribbon.Primitives
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public NotInheritable Class RibbonScrollButtonVisibilityConverter _
    Implements IMultiValueConverter
public sealed class RibbonScrollButtonVisibilityConverter : IMultiValueConverter
public ref class RibbonScrollButtonVisibilityConverter sealed : IMultiValueConverter
[<Sealed>]
type RibbonScrollButtonVisibilityConverter =  
    class
        interface IMultiValueConverter
    end
public final class RibbonScrollButtonVisibilityConverter implements IMultiValueConverter

The RibbonScrollButtonVisibilityConverter type exposes the following members.

Constructors

  Name Description
Public method RibbonScrollButtonVisibilityConverter Initializes a new instance of the RibbonScrollButtonVisibilityConverter class.

Top

Methods

  Name Description
Public method Convert Converts a scroll bar visibility and scroll position to a Visibility value.
Public method ConvertBack Infrastructure. This API is not implemented.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

The RibbonTabHeadersPanel and RibbonTabsPanel provide horizontal scrolling behavior for the ribbon. When scrolling is needed, the ribbon replaces the typical scroll bar with a repeat button at each end of the ribbon. This converter uses the visibility and position of the scroll bar to determine the visibility of each of the repeat buttons.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Windows.Controls.Ribbon.Primitives Namespace

RibbonTabHeadersPanel

RibbonTabsPanel