ClassRadRibbonGallery
Represents a gallery control designed for use within a ribbon interface, providing a customizable and interactive way to display and select items. The RadRibbonGallery supports features such as compression thresholds, popup menus, and scrolling.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.RibbonView.dll
Syntax:
[Themable]
[TelerikToolboxCategory("Navigation")]
public class RadRibbonGallery : RadGallery, IMultiSelector, ISelector, ISelectorInteraction, IAutocomplete, IListControl, ICommandSource, IScrollingServiceCore, IScrollingInfo, IVariantControl
Inheritance: objectItemsControlSelectorListControlRadListBoxRadGalleryRadRibbonGallery
Implements:
Inherited Members
Constructors
RadRibbonGallery()
Initializes a new instance of the RadRibbonGallery class.
Declaration
public RadRibbonGallery()
Fields
CompressedThresholdProperty
Identifies the CompressedThreshold property.
Declaration
public static readonly DependencyProperty CompressedThresholdProperty
Field Value
DependencyProperty
IconProperty
Identifies the Icon property.
Declaration
public static readonly DependencyProperty IconProperty
Field Value
DependencyProperty
IsCompressedProperty
Identifies the IsCompressed property.
Declaration
public static readonly DependencyProperty IsCompressedProperty
Field Value
DependencyProperty
IsOpenChangedEvent
Identifies the IsOpenChangedEvent routed event.
Declaration
public static readonly RoutedEvent IsOpenChangedEvent
Field Value
RoutedEvent
IsOpenProperty
Identifies the IsOpen property.
Declaration
public static readonly DependencyProperty IsOpenProperty
Field Value
DependencyProperty
LayoutModeProperty
Identifies the LayoutMode property.
Declaration
public static readonly DependencyProperty LayoutModeProperty
Field Value
DependencyProperty
MoreButtonTitleProperty
Identifies the MoreButtonTitle property.
Declaration
public static readonly DependencyProperty MoreButtonTitleProperty
Field Value
DependencyProperty
PopupContentProperty
Identifies the popup content property.
Declaration
public static readonly DependencyProperty PopupContentProperty
Field Value
DependencyProperty
PopupLaunchButtonVisibilityProperty
Identifies a PopupLaunchButtonVisibility property.
Declaration
public static readonly DependencyProperty PopupLaunchButtonVisibilityProperty
Field Value
DependencyProperty
PopupMenuItemsProperty
Identifies the PopupMenuItems property.
Declaration
public static readonly DependencyProperty PopupMenuItemsProperty
Field Value
DependencyProperty
PopupViewportHeightProperty
Identifies the PopupViewportHeight property.
Declaration
public static readonly DependencyProperty PopupViewportHeightProperty
Field Value
DependencyProperty
PopupViewportWidthProperty
Identifies the PopupViewportWidth property.
Declaration
public static readonly DependencyProperty PopupViewportWidthProperty
Field Value
DependencyProperty
ScrollViewerPositionDependencyProperty
Identifies a ScrollViewerPosition property.
Declaration
public static readonly DependencyProperty ScrollViewerPositionDependencyProperty
Field Value
DependencyProperty
TitleProperty
Identifies the Title property.
Declaration
public static readonly DependencyProperty TitleProperty
Field Value
DependencyProperty
UpDownButtonTitleProperty
Identifies the UpDownButtonTitle property.
Declaration
public static readonly DependencyProperty UpDownButtonTitleProperty
Field Value
DependencyProperty
Properties
CompressedThreshold
Gets or sets the compressed threshold.
Declaration
public CollapseThreshold CompressedThreshold { get; set; }
Property Value
The compressed threshold.
Icon
Gets or sets the icon.
Declaration
public ImageSource Icon { get; set; }
Property Value
ImageSource
The icon.
IsCompressed
Gets a value indicating whether this instance is compressed.
Declaration
public bool IsCompressed { get; }
Property Value
True if this instance is compressed; otherwise, false.
IsOpen
Gets or sets a value indicating whether the group is open.
Declaration
public bool IsOpen { get; set; }
Property Value
True if this instance is open; otherwise, false.
LayoutMode
Gets or sets a value indicating the layout render mode of the control.
Declaration
public RibbonLayout LayoutMode { get; set; }
Property Value
MoreButtonTitle
Gets or sets the MoreButton title.
Declaration
public string MoreButtonTitle { get; set; }
Property Value
The title.
PopupContent
Gets or sets content to be shown when the Gallery popup is opened.
PopupLaunchButtonVisibility
Gets or sets the popup launch button visibility.
Declaration
public Visibility PopupLaunchButtonVisibility { get; set; }
Property Value
Visibility
The popup launch button visibility.
PopupMenuItems
Gets or sets the popup menu items.
Declaration
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public ObservableCollection<UIElement> PopupMenuItems { get; set; }
Property Value
ObservableCollection<UIElement>
The popup menu items.
PopupViewportHeight
Gets or sets the height of the popup viewport.
Declaration
public double PopupViewportHeight { get; set; }
Property Value
The height of the popup viewport.
PopupViewportWidth
Gets or sets the width of the popup viewport.
Declaration
public double PopupViewportWidth { get; set; }
Property Value
The width of the popup viewport.
Title
Gets or sets the title.
UpDownButtonTitle
Gets or sets the UpDownButtons title.
Declaration
public string UpDownButtonTitle { get; set; }
Property Value
The title.
Methods
ChangeVisualState()
Changes the visual state of the control using transitions.
Declaration
protected void ChangeVisualState()
GetScrollViewerPart()
Called on initializing the ScrollViewer on template applied. It's mandatory to get the ScrollViewer in order to perform selection.
Declaration
protected override ScrollViewer GetScrollViewerPart()
Returns
ScrollViewer
Overrides
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
Declaration
public override void OnApplyTemplate()
Overrides
OnCreateAutomationPeer()
Creates an appropriate GalleryAutomationPeer for this control as part of the WPF/Silverlight infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Overrides
OnSelectionChanged(SelectionChangedEventArgs)
Called when the selection changes.
Declaration
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters
e
SelectionChangedEventArgs
The event data.
Overrides
SetVariant(RibbonGroupVariant)
Sets the variant.
Declaration
public void SetVariant(RibbonGroupVariant variant)
Parameters
variant
Implements
Events
IsOpenChanged
Occurs on mouse leave.
Declaration
public event EventHandler<RadRoutedEventArgs> IsOpenChanged
Event Value