Table of Contents

Class SpeedButtonWithPopup<TPopup, TControl>

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Represents a specialized button control that displays a popup window.

public class SpeedButtonWithPopup<TPopup, TControl> : SpeedButton, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, ILayoutItem, INotifyDataErrorInfo, ICommandSource where TPopup : PopupWindow<TControl>, new() where TControl : AbstractControl, new()

Type Parameters

TPopup

The type of the popup window.

TControl

The type of the main control of the popup window.

Inheritance
SpeedButtonWithPopup<TPopup, TControl>
Implements
Derived

Constructors

SpeedButtonWithPopup()

Initializes a new instance of the SpeedButtonWithPopup<TPopup, TControl> class.

Properties

IsPopupWindowCreated

Gets a value indicating whether the popup window has been created.

PopupOwner

Gets or sets a control used as a popup owner.

PopupWindow

Gets attached popup window.

PopupWindowTitle

Gets or sets the title of the popup window.

Text

Gets or sets value as string.

Value

Gets or sets selected color.

Methods

DisposeManaged()

Override to dispose managed resources. Here we dispose all used object references.

GetValueAsString(object?)

Gets enum value as string.

OnBeforeShowPopup(EventArgs)

Called before popup window is shown..

OnClick(EventArgs)

Called when the control is clicked.

OnEnabledChanged(EventArgs)

Called when the enabled of the Enabled property changes.

OnMouseDoubleClick(MouseEventArgs)

Called when the mouse button was double-clicked.

OnPopupWindowClosed(object?, EventArgs)

Fired after popup window is closed. Applies value selected in the popup window to the control.

OnValueChanged(EventArgs)

Called when the value of the Value property changes.

RaiseBeforeShowPopup(EventArgs)

Raises the ValueChanged event and calls OnValueChanged(EventArgs).

RaiseValueChanged(EventArgs)

Raises the ValueChanged event and calls OnValueChanged(EventArgs).

ShowPopup()

Shows popup window.

UpdateBaseText()

Called when the text of the control changes.

ValueAs<T2>()

Casts selected item to T2 type.

Events

BeforeShowPopup

Occurs before popup window is shown.

ValueChanged

Occurs when Value property is changed.

ValueToDisplayString

Occurs when value is converted to string for the display purposes.