Table of Contents

Method OverrideButtonType

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

OverrideButtonType(Type, Action)

Overrides button type used when items are created and calls the specified action. After action is called an override is cleared.

public virtual void OverrideButtonType(Type type, Action action)

Parameters

type Type

The type of the button to use as override.

action Action

Action to call.

Exceptions

ArgumentException

Thrown when type is not derived from SpeedButton.