Represents an image button.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadImageButtonElement : RadButtonElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IButtonControl, IImageElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadButtonItemRadButtonElementRadImageButtonElement...
Derived Classes:
Implements:
Inherited Members
Constructors
public RadImageButtonElement()
Fields
public static RadProperty ImageClickedProperty
public static RadProperty ImageHoveredProperty
public static RadProperty ImageIndexClickedProperty
public static RadProperty ImageIndexHoveredProperty
public static RadProperty ImageKeyClickedProperty
public static RadProperty ImageKeyHoveredProperty
Properties
Specifies the options for display of image and text primitives in the element.
public override DisplayStyle DisplayStyle { get; set; }
Overrides:
Gets or sets the image that is displayed on a button element when it is clicked.
[TypeConverter(typeof(ImageTypeConverter))]
public virtual Image ImageClicked { get; set; }
Gets or sets the image that is displayed on a button element when it is hovered.
[TypeConverter(typeof(ImageTypeConverter))]
public virtual Image ImageHovered { get; set; }
Gets or sets the image list index value of the image displayed on the button control when it is clicked.
[RelatedImageList("ElementTree.Control.ImageList")]
[TypeConverter("Telerik.WinControls.UI.Design.NoneExcludedImageIndexConverter, Telerik.WinControls.UI.Design, Version=2026.2.702.48, Culture=neutral, PublicKeyToken=5bb2a467cbec794e")]
public virtual int ImageIndexClicked { get; set; }
Gets or sets the image list index value of the image displayed on the button control when it is hovered.
[RelatedImageList("ElementTree.Control.ImageList")]
[TypeConverter("Telerik.WinControls.UI.Design.NoneExcludedImageIndexConverter, Telerik.WinControls.UI.Design, Version=2026.2.702.48, Culture=neutral, PublicKeyToken=5bb2a467cbec794e")]
public virtual int ImageIndexHovered { get; set; }
Gets or sets the key accessor for the image for clicked state in the ImageList.
[RelatedImageList("ElementTree.Control.ImageList")]
[TypeConverter("Telerik.WinControls.UI.Design.RadImageKeyConverter, Telerik.WinControls.UI.Design, Version=2026.2.702.48, Culture=neutral, PublicKeyToken=5bb2a467cbec794e")]
public virtual string ImageKeyClicked { get; set; }
Gets or sets the key accessor for the image for hovered state in the ImageList.
[RelatedImageList("ElementTree.Control.ImageList")]
[TypeConverter("Telerik.WinControls.UI.Design.RadImageKeyConverter, Telerik.WinControls.UI.Design, Version=2026.2.702.48, Culture=neutral, PublicKeyToken=5bb2a467cbec794e")]
public virtual string ImageKeyHovered { get; set; }
Methods
Creates the child elements that compose the button structure including fill, border, text, image, layout panel, and focus primitives. This method establishes the visual hierarchy and property bindings between the child elements.
protected override void CreateChildElements()
Overrides:
Initializes the fields of the RadButtonElement.
protected override void InitializeFields()
Overrides:
Handles property changes, specifically releasing the pressed state when the button is disabled.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The RadPropertyChangedEventArgs containing event data.
Overrides: