Class
RadGallery

Represents a gallery control that displays a collection of items with customizable dimensions and styling.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.RibbonView.dll

Syntax:

cs-api-definition
public class RadGallery : RadListBox, IMultiSelector, ISelector, ISelectorInteraction, IAutocomplete, IListControl, ICommandSource, IScrollingServiceCore, IScrollingInfo

Inheritance: objectItemsControlSelectorListControlRadListBoxRadGallery

Derived Classes: RadRibbonGallery

Implements: IAutocompleteICommandSourceIListControlIMultiSelectorIScrollingInfoIScrollingServiceCoreISelectorISelectorInteraction

Inherited Members RadListBox.DropVisualProviderPropertyRadListBox.DragDropBehaviorPropertyRadListBox.DragVisualProviderPropertyRadListBox.DataConverterPropertyRadListBox.OnApplyTemplate()RadListBox.IsItemSelectable(object)RadListBox.OnKeyDown(KeyEventArgs)RadListBox.HandleKeyboardInput(Key)RadListBox.OnTextInput(TextCompositionEventArgs)RadListBox.InitializeTextRetriever()RadListBox.GetDataItem(UIElement)RadListBox.UpdateItems(NotifyCollectionChangedAction, IList, IList)RadListBox.OnSelectionChanged(SelectionChangedEventArgs)RadListBox.OnItemsChanged(NotifyCollectionChangedEventArgs)RadListBox.DropVisualProviderRadListBox.DragDropBehaviorRadListBox.DragVisualProviderRadListBox.DataConverterListControl.CanAutocompleteSelectItemsPropertyListControl.TextSearchModePropertyListControl.CanAutocompleteSelectPartialMatchesPropertyListControl.TypedTextPropertyListControl.CommandPropertyListControl.CommandParameterPropertyListControl.CommandTargetPropertyListControl.CanKeyboardNavigationSelectItemsPropertyListControl.IsScrollIntoViewEnabledPropertyListControl.ClearContainerForItemOverride(DependencyObject, object)ListControl.OnItemsPanelChanged(ItemsPanelTemplate, ItemsPanelTemplate)ListControl.OnPropertyChanged(DependencyPropertyChangedEventArgs)ListControl.ClearContainerStates(FrameworkElement)ListControl.HighlightedIndexChanged(int, Key)ListControl.OnMatchingItemChanged()ListControl.OnAutocompleteBehaviorTypedTextChanged()ListControl.IsIndexSelectable(int)ListControl.OnSelectionModeChanged()ListControl.GetScrollViewerPart()ListControl.ScrollIntoView(object)ListControl.ScrollIntoView(int)ListControl.SelectAllCommandListControl.CanAutocompleteSelectItemsListControl.CanAutocompleteSelectPartialMatchesListControl.TextSearchModeListControl.CanKeyboardNavigationSelectItemsListControl.IsScrollIntoViewEnabledListControl.TypedTextListControl.CommandListControl.CommandParameterListControl.CommandTargetListControl.IsItemsHostVisibleListControl.HighlightedItemListControl.KeyboardNavigationListControl.AutocompleteBehaviorListControl.HighlightedIndexItemsControlSelector.SelectionModePropertyItemsControlSelector.IsSynchronizedWithCurrentItemPropertyItemsControlSelector.SelectedIndexPropertyItemsControlSelector.SelectedItemPropertyItemsControlSelector.SelectedValuePropertyItemsControlSelector.SelectedValuePathPropertyItemsControlSelector.TextPropertyItemsControlSelector.TextPathPropertyItemsControlSelector.EnableSelectionCachingPropertyItemsControlSelector.SelectionChangedEventItemsControlSelector.OnItemsSourceChanged(IEnumerable, IEnumerable)ItemsControlSelector.ChangeVisualState(bool)ItemsControlSelector.OnIsEnabledChanged(DependencyPropertyChangedEventArgs)ItemsControlSelector.InitializeValueRetriever()ItemsControlSelector.InitializeSelectionBehavior()ItemsControlSelector.GetSelectionBehavior()ItemsControlSelector.EndInit()ItemsControlSelector.SelectionModeItemsControlSelector.IsSynchronizedWithCurrentItemItemsControlSelector.SelectedItemsItemsControlSelector.SelectionHelperItemsControlSelector.SelectedIndexItemsControlSelector.SelectedItemItemsControlSelector.SelectedValueItemsControlSelector.SelectedValuePathItemsControlSelector.SelectedValueBindingItemsControlSelector.TextBindingItemsControlSelector.TextItemsControlSelector.TextPathItemsControlSelector.EnableSelectionCachingItemsControlSelector.ItemSearchItemsControlSelector.ValueRetrieverItemsControlSelector.TextRetrieverItemsControlSelector.SelectionChanged

Constructors

RadGallery()

Initializes a new instance of the RadGallery class.

Declaration

cs-api-definition
public RadGallery()

Fields

ItemHeightProperty

Identifies the ItemHeight property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemHeightProperty

Field Value

DependencyProperty

ItemWidthProperty

Identifies the ItemWidth property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemWidthProperty

Field Value

DependencyProperty

ViewportWidthProperty

Identifies the ViewportWidth property.

Declaration

cs-api-definition
public static readonly DependencyProperty ViewportWidthProperty

Field Value

DependencyProperty

Properties

ItemHeight

Gets or sets the height of the item.

Declaration

cs-api-definition
public double ItemHeight { get; set; }

Property Value

double

The height of the item.

ItemWidth

Gets or sets the width of the item.

Declaration

cs-api-definition
public double ItemWidth { get; set; }

Property Value

double

The width of the item.

ViewportWidth

Gets or sets the width of the viewport.

Declaration

cs-api-definition
public double ViewportWidth { get; set; }

Property Value

double

The width of the viewport.

Methods

CanPerformSelection()

Indicates whether the selection helper can perform operation or not.

Declaration

cs-api-definition
protected override bool CanPerformSelection()

Returns

bool

Overrides ListControl.CanPerformSelection()

GetContainerForItemOverride()

Creates or identifies the element that is used to display the given item.

Declaration

cs-api-definition
protected override DependencyObject GetContainerForItemOverride()

Returns

DependencyObject

The element that is used to display the given item.

Overrides RadListBox.GetContainerForItemOverride()

IsItemItsOwnContainerOverride(object)

Determines if the specified item is (or is eligible to be) its own container.

Declaration

cs-api-definition
protected override bool IsItemItsOwnContainerOverride(object item)

Parameters

item

object

The item to check.

Returns

bool

True if the item is (or is eligible to be) its own container; otherwise, false.

Overrides ListControl.IsItemItsOwnContainerOverride(object)

OnCreateAutomationPeer()

Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides RadListBox.OnCreateAutomationPeer()

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

Overrides RadListBox.OnInitialized(EventArgs)

PrepareContainerForItemOverride(DependencyObject, object)

Prepares the container for item override.

Declaration

cs-api-definition
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)

Parameters

element

DependencyObject

The element.

item

object

The item.

Overrides ListControl.PrepareContainerForItemOverride(DependencyObject, object)

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()

Events

ActivatePreview

Occurs when mouse is over a gallery item.

Declaration

cs-api-definition
public event EventHandler<RadRoutedEventArgs> ActivatePreview

Event Value

EventHandler<RadRoutedEventArgs>

DeactivatePreview

Occurs when the mouse leaves the gallery item.

Declaration

cs-api-definition
public event EventHandler<RadRoutedEventArgs> DeactivatePreview

Event Value

EventHandler<RadRoutedEventArgs>