Class LayoutableExtensions
- Namespace
- CarinaStudio.Controls
- Assembly
- CarinaStudio.AppBase.Avalonia.dll
Extension methods for Avalonia.Layout.Layoutable.
public static class LayoutableExtensions
- Inheritance
-
LayoutableExtensions
- Inherited Members
Methods
RequestLayoutCallback(Layoutable, Action, bool)
Enqueue a call-back to be called when next layout update.
public static IDisposable RequestLayoutCallback(this Layoutable layoutable, Action callback, bool invalidateArrange = false)
Parameters
layoutableLayoutableAvalonia.Layout.Layoutable.
callbackActionCall-back to be called.
invalidateArrangeboolTrue to invalidate arrange of Avalonia.Layout.Layoutable as well.
Returns
- IDisposable
IDisposable represents enqueued call-back. The call-back can be dequeued by disposing the IDisposable.