Method GetObjectOrAction
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
VisualControlStateControl state.
action
Func<T>Action to call if no object is assigned for the state.
Returns
- T