Table of Contents

Method GetObjectOrAction

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

GetObjectOrAction(VisualControlState, Func<T>)

Gets an object for the specified state or calls an action if object for that state is not specified.

public virtual T GetObjectOrAction(VisualControlState state, Func<T> action)

Parameters

state VisualControlState

Control state.

action Func<T>

Action to call if no object is assigned for the state.

Returns

T