Represents the main element that implements the AI-powered smart paste button logic. This element contains all behavior, properties, and child elements for the smart paste button.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadSmartPasteButtonElement : LightVisualButtonElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementLightVisualButtonElementRadSmartPasteButtonElement...
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadSmartPasteButtonElement class.
public RadSmartPasteButtonElement()
Fields
Identifies the IconForeColor property.
public static RadProperty IconForeColorProperty
Identifies the IconImage property.
public static RadProperty IconImageProperty
Identifies the IconSize property.
public static RadProperty IconSizeProperty
Identifies the IconSvgImage property.
public static RadProperty IconSvgImageProperty
Identifies the IsDefault property.
public static RadProperty IsDefaultProperty
Identifies the IsProcessing property.
public static RadProperty IsProcessingProperty
Identifies the Provider property.
public static RadProperty ProviderProperty
Identifies the Text property.
public static RadProperty TextProperty
Properties
Gets the icon element.
public ImagePrimitive IconElement { get; }
Gets or sets the Color used to render the button's icon glyph.
public Color IconForeColor { get; set; }
Gets or sets the bitmap icon rendered in the button.
public Image IconImage { get; set; }
Gets or sets the size of the button SVG icon, in pixels.
public int IconSize { get; set; }
Gets or sets the SVG icon rendered in the button.
public RadSvgImage IconSvgImage { get; set; }
Gets or sets a value indicating whether the button is in default visual state.
public bool IsDefault { get; set; }
Gets a value indicating whether the button is in processing state.
public bool IsProcessing { get; }
Gets the processing indicator element.
public LightVisualElement ProcessingIndicatorElement { get; }
Gets or sets the smart paste provider that supplies fields and handles value assignment.
public ISmartPasteButtonProvider Provider { get; set; }
Gets or sets the text displayed in the button.
public override string Text { get; set; }
Overrides:
Gets the text element.
public TextPrimitive TextElement { get; }
Methods
Creates the child elements that compose the smart paste button structure.
protected override void CreateChildElements()
Overrides:
Disposes resources used by this element.
protected override void DisposeManagedResources()
Overrides:
Handles the click event on the element. Initiates or cancels the smart paste operation.
Called when a RadProperty value changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Overrides:
Raises the SmartPasteRequest event.
protected virtual void OnSmartPasteRequest(SmartPasteButtonRequestEventArgs e)
Events
Occurs when a smart paste operation is requested. Subscribe to this event to initiate the smart paste logic.
public event EventHandler<SmartPasteButtonRequestEventArgs> SmartPasteRequest