New to Telerik UI for WPFStart a free 30-day trial

Provides a container UI provider for managing user interface elements within the Telerik document UI framework.

Definition

Namespace:Telerik.Windows.Documents.UI.UIProviders

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class UIContainerUIProvider : IUIProvider

Inheritance: objectUIContainerUIProvider

Implements: IUIProvider

Constructors

C#
public UIContainerUIProvider(UIElementLayoutBox elementBox)
Parameters:elementBoxUIElementLayoutBox

Properties

Gets the bounding rectangle of the UI element within the container.

C#
public RectangleF BoundingRectangle { get; }

Implements: IUIProvider.BoundingRectangle

Gets the containing layer of the current UI provider.

C#
public IUILayer ContainingLayer { get; set; }

Implements: IUIProvider.ContainingLayer

Gets a value indicating whether the UI provider has been invalidated.

C#
public bool IsInvalidated { get; }

Implements: IUIProvider.IsInvalidated

Gets a value indicating whether the UI component has been removed from the UI container.

C#
public bool IsRemoved { get; }

Implements: IUIProvider.IsRemoved

UIElement

UIElement

Represents a UI element within the UIContainer UI Provider.

C#
public UIElement UIElement { get; }

Represents a UI element box within the UI container, providing functionality for managing and displaying UI elements in a structured manner.

C#
public UIElementLayoutBox UIElementBox { get; }

Methods

Arranges the UI elements within the specified update context.

C#
public void Arrange(UILayerUpdateContext uILayerUpdateContext)
Parameters:uILayerUpdateContextUILayerUpdateContext

The context that contains information about the current update to the UI layer.

Implements: IUIProvider.Arrange(UILayerUpdateContext)

Retrieves the user interface elements associated with the specified UI layer update context.

C#
public IEnumerable<UIElement> GetUIElements(UILayerUpdateContext context)
Parameters:contextUILayerUpdateContext

The context that contains information about the UI layer update.

Returns:

IEnumerable<UIElement>

A collection of UI elements that are part of the specified update context.

Implements: IUIProvider.GetUIElements(UILayerUpdateContext)

Releases the UI elements managed by the UIContainerUIProvider.

C#
public void ReleaseElements()

Implements: IUIProvider.ReleaseElements()

Remarks:

This method is responsible for cleaning up resources associated with UI elements, ensuring that any allocated memory is released and that there are no memory leaks.

Updates the user interface based on the specified context for the UI layer.

C#
public void UpdateUI(UILayerUpdateContext uILayerUpdateContext)
Parameters:uILayerUpdateContextUILayerUpdateContext

The context that provides information necessary for updating the UI layer.

Implements: IUIProvider.UpdateUI(UILayerUpdateContext)