Table of Contents

Method PushChildrenEnabledMultiple

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

PushChildrenEnabledMultiple(IEnumerable<AbstractControl>, bool, bool)

Iterates collection of the container controls and changes 'Enabled' property value of their childs. Old property values are returned.

public static ConcurrentStack<PropInstanceAndValue.SavedPropertiesItem>? PushChildrenEnabledMultiple(IEnumerable<AbstractControl> containers, bool newValue, bool doInsideUpdate = true)

Parameters

containers IEnumerable<AbstractControl>

The collection of the container controls which childs are processed.

newValue bool

New value for the property.

doInsideUpdate bool

Whether to call DoInsideUpdate(Action) when properties are restored.

Returns

ConcurrentStack<PropInstanceAndValue.SavedPropertiesItem>

Old values of the properties, it allows to restore them later.