ContextLayoutManager
Coordinates measure and arrange queues for a RadElement tree and dispatches layout notifications.
Definition
Namespace:Telerik.WinControls.Layouts
Assembly:Telerik.WinControls.dll
Syntax:
public sealed class ContextLayoutManager : ILayoutManager, IDisposable
Inheritance: objectContextLayoutManager
Implements:
Constructors
Creates a layout manager that uses the specified handler to dispatch deferred layout callbacks.
public ContextLayoutManager(ILayoutHandler layoutHandler)
The callback dispatcher associated with this manager.
Properties
Gets the queue of elements waiting to be arranged.
public ILayoutQueue ArrangeQueue { get; }
Implements:
Gets whether the manager is processing a layout pass or an element measure or arrange call.
public bool IsUpdating { get; }
Implements:
LayoutEvents
List<EventHandler>
Gets the handlers that are notified after a layout pass completes without remaining work.
public List<EventHandler> LayoutEvents { get; }
Implements:
Gets the queue of elements waiting to be measured.
public ILayoutQueue MeasureQueue { get; }
Implements:
Methods
Queues size-change information for notification after layout processing.
public void AddToSizeChangedChain(SizeChangedInfo info)
The element's size-change information.
Implements:
Completes a call previously recorded by IncrementLayoutCalls().
public void DecrementLayoutCalls()
Implements:
Clears pending layout state and releases the handler reference without disposing the handler.
public void Dispose()
Implements:
Enters an arrange operation and tracks its nesting depth.
public void EnterArrange()
The arrange nesting exceeds the manager's recursion limit.
Implements:
Enters a measure operation and tracks its nesting depth.
public void EnterMeasure()
The measure nesting exceeds the manager's recursion limit.
Implements:
Exits an arrange operation entered with EnterArrange().
public void ExitArrange()
Implements:
Exits a measure operation entered with EnterMeasure().
public void ExitMeasure()
Implements:
Marks the start of an element measure or arrange call so IsUpdating reflects that work. Pair each call with DecrementLayoutCalls().
public void IncrementLayoutCalls()
Implements:
Requests a deferred layout update through the associated handler.
public void InvokeUpdateLayoutAsync()
Implements:
Removes an element's pending measure and arrange requests.
public void RemoveElementFromQueues(RadElement e)
The element to remove from both queues.
Implements:
Processes pending measure and arrange requests unless a layout pass or recursive measure/arrange operation is active.
public void UpdateLayout()
Implements: