Class
RadGallery

Represents a ribbon RadGallery.

Definition

Namespace:Telerik.UI.Xaml.Controls

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class RadGallery : ListBox

Inheritance: objectRadGallery

Derived Classes: RadRibbonGallery

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

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.

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.

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

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.

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>