[]
        
(Showing Draft Content)

C1.Framework.ButtonElement

ButtonElement Class

Simple button with text and image.

Namespace: C1.Framework
Assembly: C1.Win.4.8.dll
Syntax
public class ButtonElement : StackPanel, ISupportUia, IToolTipElement, IUiaButton, IUiaInvokeProvider

Constructors

Name Description
ButtonElement()

Initializes a new ButtonElement.

ButtonElement(Style)

Initializes a new ButtonElement with specified style.

ButtonElement(Style, params object[])

Initializes a new ButtonElement with specified style and content.

ButtonElement(params object[])

Initializes a new ButtonElement with specified content.

Fields

Name Description
_toolTipText

Properties

Name Description
Image

Gets or sets the Image to display.

Text

Gets or sets the string value to display.

ToolTipText

Gets or sets the string value to show as element tooltip.

UiaCall

Gets UIA calling mode.

Methods

Name Description
GetDropDownButton(Size, ComboBoxState)

Returns drop-down button image.

GetImageElement()

Returns reference to the ImageElement used to display image.

GetImageElement(bool)

Returns reference to the ImageElement used to display image.

GetPushImage(Image, bool, PushButtonState)

Returns radiobox image.

GetPushImage(Size, string, Font, bool, PushButtonState)

Returns radiobox image.

GetTextElement()

Returns reference to the TextElement used to display text.

GetTextElement(bool)

Returns reference to the TextElement used to display text.

OnClick()

Fires the Click event.

OnKeyDown(KeyEventArgs)

Called by the host control when the user presses a key and this Element has the focus.

OnKeyUp(KeyEventArgs)

Called by the host control when the user releases a key and this Element has the focus.

OnMouseUp(MouseEventArgs)

Called by the host control when the user releases a mouse button over this Element.

PerformClick()

Fires the Click event.

Events

Name Description
Click

Occurs when the ButtonElement element is clicked.