Class
RadGalleryItem

Represents an item in a RadGallery control, which can display an image and optionally act as a header.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.RibbonView.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Navigation")]
public class RadGalleryItem : RadListBoxItem, ISelectorItem

Inheritance: objectListItemRadListBoxItemRadGalleryItem

Implements: ISelectorItem

Inherited Members RadListBoxItem.OnIsSelectedChanged()RadListBoxItem.OnCreateAutomationPeer()ListItem.IsSelectedPropertyListItem.IsHighlightedPropertyListItem.OnGotFocus(RoutedEventArgs)ListItem.OnLostFocus(RoutedEventArgs)ListItem.OnMouseLeftButtonDown(MouseButtonEventArgs)ListItem.OnMouseRightButtonDown(MouseButtonEventArgs)ListItem.GoToState(bool, params string[])ListItem.TryFocus()ListItem.OnIsHighlightedChanged()ListItem.ParentSelectorListItem.IsHighlightedListItem.IsSelected

Constructors

RadGalleryItem()

Initializes a new instance of the RadGalleryItem class.

Declaration

cs-api-definition
public RadGalleryItem()

Fields

ActivatePreviewEvent

Identifies the ActivatePreviewEvent routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ActivatePreviewEvent

Field Value

RoutedEvent

DeactivatePreviewEvent

Identifies the DeActivatePreviewEvent routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent DeactivatePreviewEvent

Field Value

RoutedEvent

ImageProperty

Identifies the Image property.

Declaration

cs-api-definition
public static readonly DependencyProperty ImageProperty

Field Value

DependencyProperty

IsHeaderProperty

Identifies the IsHeader property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsHeaderProperty

Field Value

DependencyProperty

Properties

Image

Get/Set the SmallImage that is shown in Medium and Small button state.

Declaration

cs-api-definition
public ImageSource Image { get; set; }

Property Value

ImageSource

IsHeader

Get/Set the IsHeader that shows is item marked for header.

Declaration

cs-api-definition
public bool IsHeader { get; set; }

Property Value

bool

Methods

ChangeVisualState(bool)

Changes the visual state of the control using transitions.

Declaration

cs-api-definition
protected override void ChangeVisualState(bool useTransitions)

Parameters

useTransitions

bool

Overrides RadListBoxItem.ChangeVisualState(bool)

OnActivatePreview(RadRoutedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual bool OnActivatePreview(RadRoutedEventArgs e)

Parameters

e

RadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Returns

bool

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .

Declaration

cs-api-definition
public override void OnApplyTemplate()

Overrides RadListBoxItem.OnApplyTemplate()

OnDeactivatePreview(RadRoutedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual bool OnDeactivatePreview(RadRoutedEventArgs e)

Parameters

e

RadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Returns

bool

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 RadListBoxItem.OnInitialized(EventArgs)

OnMouseEnter(MouseEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnMouseEnter(MouseEventArgs e)

Parameters

e

MouseEventArgs

The data for the event.

Overrides RadListBoxItem.OnMouseEnter(MouseEventArgs)

OnMouseLeave(MouseEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnMouseLeave(MouseEventArgs e)

Parameters

e

MouseEventArgs

The data for the event.

Overrides RadListBoxItem.OnMouseLeave(MouseEventArgs)

OnMouseLeftButtonUp(MouseButtonEventArgs)

Invoked when an unhandled  routed event is raised on this element. Implement this method to add class handling for this event.

Declaration

cs-api-definition
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

Overrides ListItem.OnMouseLeftButtonUp(MouseButtonEventArgs)

Events

ActivatePreview

Occurs on mouse enter.

Declaration

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

Event Value

EventHandler<RadRoutedEventArgs>

DeactivatePreview

Occurs on mouse leave.

Declaration

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

Event Value

EventHandler<RadRoutedEventArgs>