RadGalleryItem
Represents an image-and-text entry displayed by a RadGalleryElement, with optional description text and hover zoom when enabled by the gallery.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadGalleryItem : RadButtonItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IButtonControl, IImageElement, ICloneable
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadButtonItemRadGalleryItem...
Derived Classes:
Implements:
Inherited Members
Constructors
Creates an item with no text or image.
public RadGalleryItem()
Creates an item whose displayed text is text.
public RadGalleryItem(string text)
The text displayed alongside the item's image.
Fields
Identifies the property that supplies the font for this item's description text.
public static RadProperty DescriptionFontProperty
Properties
Gets the border primitive used to render the item's selection outline.
public BorderPrimitive BorderPrimitive { get; }
Gets or sets the font of the description text of the RadGalleryItem.
public virtual Font DescriptionFont { get; set; }
Gets or sets the description text associated with this item.
[Browsable(true)]
[Bindable(true)]
[SettingsBindable(true)]
public string DescriptionText { get; set; }
Gets the fill primitive used to render the item's selected background.
public FillPrimitive FillPrimitive { get; }
Angle of rotation for the button image. Unlike AngleTransform the property ImagePrimitiveAngleTransform rotates the image only. AngleTransform rotates the whole item
public float ImagePrimitiveAngleTransform { get; set; }
Returns whether the gallery item is currently selected.
[Browsable(false)]
public bool IsSelected { get; set; }
Methods
Creates a new item containing this item's text and image; other item settings are not copied.
Builds the selection visuals and the image, text, and description layout for the item.
protected override void CreateChildElements()
Overrides:
Sets the item to wrap around its content and receive mouse input from its parent.
protected override void InitializeFields()
Overrides:
Propagates selection-state changes to the item's child visuals so their state managers can render the selection.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The property-change event data.
Overrides:
Returns the designer-site name when the item is sited, or the base element representation otherwise.
public override string ToString()
The site's name or the base implementation's string.
Overrides:
Closes this item's hover-zoom popup, if a gallery zoom behavior is attached.
public void ZoomHide()