New to Telerik UI for WPFStart a free 30-day trial

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:

C#
[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

Initializes a new instance of the RadGalleryItem class.

C#
public RadGalleryItem()

Fields

Identifies the ActivatePreviewEvent routed event.

C#
public static readonly RoutedEvent ActivatePreviewEvent

Identifies the DeActivatePreviewEvent routed event.

C#
public static readonly RoutedEvent DeactivatePreviewEvent

ImageProperty

DependencyProperty

Identifies the Image property.

C#
public static readonly DependencyProperty ImageProperty

IsHeaderProperty

DependencyProperty

Identifies the IsHeader property.

C#
public static readonly DependencyProperty IsHeaderProperty

Properties

Image

ImageSource

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

C#
public ImageSource Image { get; set; }

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

C#
public bool IsHeader { get; set; }

Methods

Changes the visual state of the control using transitions.

C#
protected override void ChangeVisualState(bool useTransitions)
Parameters:useTransitionsbool

Overrides: RadListBoxItem.ChangeVisualState(bool)

Raises the event.

C#
protected virtual bool OnActivatePreview(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Returns:

bool

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

C#
public override void OnApplyTemplate()

Overrides: RadListBoxItem.OnApplyTemplate()

Raises the event.

C#
protected virtual bool OnDeactivatePreview(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Returns:

bool

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

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Overrides: RadListBoxItem.OnInitialized(EventArgs)

Called before the event occurs.

C#
protected override void OnMouseEnter(MouseEventArgs e)
Parameters:eMouseEventArgs

The data for the event.

Overrides: RadListBoxItem.OnMouseEnter(MouseEventArgs)

Called before the event occurs.

C#
protected override void OnMouseLeave(MouseEventArgs e)
Parameters:eMouseEventArgs

The data for the event.

Overrides: RadListBoxItem.OnMouseLeave(MouseEventArgs)

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

C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

Overrides: ListItem.OnMouseLeftButtonUp(MouseButtonEventArgs)

Events

Occurs on mouse enter.

C#
public event EventHandler<RadRoutedEventArgs> ActivatePreview

Occurs on mouse leave.

C#
public event EventHandler<RadRoutedEventArgs> DeactivatePreview