Class
BackgroundUIProvider

Provides background UI functionalities for Telerik documents.

Definition

Namespace:Telerik.Windows.Documents.UI.UIProviders

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class BackgroundUIProvider : IUIProvider

Inheritance: objectBackgroundUIProvider

Implements: IUIProvider

Constructors

BackgroundUIProvider(LayoutBox)

Declaration

cs-api-definition
public BackgroundUIProvider(LayoutBox layoutBox)

Parameters

layoutBox

LayoutBox

Properties

BackgroundUI

Gets the background UI associated with the current instance of the BackgroundUIProvider.

Declaration

cs-api-definition
public Rectangle BackgroundUI { get; }

Property Value

Rectangle

BoundingRectangle

Gets the bounding rectangle for the background UI provider, which defines the area for rendering backgrounds.

Declaration

cs-api-definition
public RectangleF BoundingRectangle { get; }

Property Value

RectangleF

A Rect structure representing the dimensions of the bounding rectangle.

Implements IUIProvider.BoundingRectangle

ContainingLayer

Gets the containing layer for the background UI provider.

Declaration

cs-api-definition
public IUILayer ContainingLayer { get; set; }

Property Value

IUILayer

The layer that contains the background UI elements.

Implements IUIProvider.ContainingLayer

CurrentUpdateContext

Gets the current update context for the Background UI Provider. This context is used to manage the state and updates of UI elements within the Background UI.

Declaration

cs-api-definition
public UILayerUpdateContext CurrentUpdateContext { get; }

Property Value

UILayerUpdateContext

IsInvalidated

Gets a value indicating whether the background UI provider is invalidated.

Declaration

cs-api-definition
public bool IsInvalidated { get; protected set; }

Property Value

bool

Implements IUIProvider.IsInvalidated

IsRemoved

Gets a value indicating whether the background UI element has been removed.

Declaration

cs-api-definition
public bool IsRemoved { get; }

Property Value

bool

Implements IUIProvider.IsRemoved

LayoutBox

Represents a layout box used by the BackgroundUIProvider to manage the arrangement of UI elements.

Declaration

cs-api-definition
public LayoutBox LayoutBox { get; }

Property Value

LayoutBox

Methods

Arrange(UILayerUpdateContext)

Arranges the background UI elements based on the specified update context.

Declaration

cs-api-definition
public void Arrange(UILayerUpdateContext uILayerUpdateContext)

Parameters

uILayerUpdateContext

UILayerUpdateContext

The update context containing information about the UI layer updates.

Implements IUIProvider.Arrange(UILayerUpdateContext)

GetUIElements(UILayerUpdateContext)

Retrieves the UI elements associated with the specified update context.

Declaration

cs-api-definition
public IEnumerable<UIElement> GetUIElements(UILayerUpdateContext context)

Parameters

context

UILayerUpdateContext

The context that provides information about the UI layer update.

Returns

IEnumerable<UIElement>

A collection of UI elements that have been updated in the specified context.

Implements IUIProvider.GetUIElements(UILayerUpdateContext)

ReleaseElements()

Releases the elements managed by the BackgroundUIProvider.

Declaration

cs-api-definition
public void ReleaseElements()

Implements IUIProvider.ReleaseElements()

UpdateUI(UILayerUpdateContext)

Updates the user interface elements based on the specified update context.

Declaration

cs-api-definition
public virtual void UpdateUI(UILayerUpdateContext uILayerUpdateContext)

Parameters

uILayerUpdateContext

UILayerUpdateContext

The context containing the information needed to update the UI elements.

Implements IUIProvider.UpdateUI(UILayerUpdateContext)