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:
[TelerikToolboxCategory("Navigation")]
public class RadGalleryItem : RadListBoxItem, ISelectorItem
Inheritance: objectListItemRadListBoxItemRadGalleryItem
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadGalleryItem class.
public RadGalleryItem()
Fields
ActivatePreviewEvent
RoutedEvent
Identifies the ActivatePreviewEvent routed event.
public static readonly RoutedEvent ActivatePreviewEvent
DeactivatePreviewEvent
RoutedEvent
Identifies the DeActivatePreviewEvent routed event.
public static readonly RoutedEvent DeactivatePreviewEvent
ImageProperty
DependencyProperty
Identifies the Image property.
public static readonly DependencyProperty ImageProperty
IsHeaderProperty
DependencyProperty
Identifies the IsHeader property.
public static readonly DependencyProperty IsHeaderProperty
Properties
Image
ImageSource
Get/Set the SmallImage that is shown in Medium and Small button state.
public ImageSource Image { get; set; }
Methods
Changes the visual state of the control using transitions.
protected override void ChangeVisualState(bool useTransitions)
Overrides:
Raises the event.
protected virtual bool OnActivatePreview(RadRoutedEventArgs e)
The RadRoutedEventArgs instance containing the event data.
Returns:When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
public override void OnApplyTemplate()
Overrides:
Raises the event.
protected virtual bool OnDeactivatePreview(RadRoutedEventArgs e)
The RadRoutedEventArgs instance containing the event data.
Returns:Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Overrides:
Called before the event occurs.
protected override void OnMouseEnter(MouseEventArgs e)
The data for the event.
Overrides:
Called before the event occurs.
protected override void OnMouseLeave(MouseEventArgs e)
The data for the event.
Overrides:
Invoked when an unhandled routed event is raised on this element. Implement this method to add class handling for this event.
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Overrides:
Events
Occurs on mouse enter.
public event EventHandler<RadRoutedEventArgs> ActivatePreview
Occurs on mouse leave.
public event EventHandler<RadRoutedEventArgs> DeactivatePreview