IUIProvider
Supplies visual elements to a UI layer and participates in its update, arrangement, and release lifecycle.
Definition
Namespace:Telerik.WinForms.Documents.UI.UIProviders
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public interface IUIProvider
Properties
Gets the rectangle the layer uses to determine whether this provider intersects the current viewport.
RectangleF BoundingRectangle { get; }
Gets or sets the layer to which this provider's visual elements are attached.
IUILayer ContainingLayer { get; set; }
Gets whether the layer should discard this provider and obtain a current provider on its next update.
bool IsInvalidated { get; }
Methods
Positions and sizes the provider's existing visual elements within the layer.
void Arrange(UILayerUpdateContext uiLayerUpdateContext)
The context containing the current viewport and view offset.
Gets the visual elements to add to the layer for the supplied update context.
IEnumerable<UIElement> GetUIElements(UILayerUpdateContext context)
The presenter and viewport information for this layer update.
Returns:IEnumerable<UIElement>
The elements hosted by the layer for this provider.
Releases or detaches the provider's visual elements before the provider is removed from its registry.
void ReleaseElements()
Updates the provider's existing visual elements for a new layer context.
void UpdateUI(UILayerUpdateContext uiLayerUpdateContext)
The current presenter and viewport information.