Bundle<T>

References
public sealed class Bundle<T>
Represents a bundle of UI controls, ie. objects that are associated with each other and may share certain visual properties. For example, bundled sliders will synchronise the width of their grips so they look more in tune with each other.
T where IBundleAware

Constructors

Bundle

#
Create a new bundle wrapped aroud a single object.
public Bundle(
T
owner
)

Properties

Count

#
Gets the number of sliders in this bundle.
public int Count { get; }

Objects

#
Enumerate over all objects in this bundle.
public IEnumerable<T> Objects { get; }

Methods

Associate

#
Associate two bundles.
public void Associate(
Bundle<T>
bundle
)

Associate

#
Associate another object with this bundle.
public void Associate(
T
obj
)

Disassociate

#
Disassociate a slider from this bundle.
public void Disassociate(
T
obj
Slider to disassociate.
)

DisassociateAll

#
Disassociate all sliders in this bundle.
public void DisassociateAll()

Union

#
Compute the float union of all bundled objects.
public float Union(
Func<T, float>
method
Object to float converter.
)
Smallest float containing all objects in the bundle.

Union

#
Compute the integer union of all bundled objects.
public int Union(
Func<T, int>
method
Object to integer converter.
)
Smallest integer containing all objects in the bundle.

Union

#
Compute the size union of all bundled objects.
public SizeF Union(
Func<T, SizeF>
method
Object to size converter.
)
Smallest size containing all objects in the bundle.