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

Represents a layer in the UI that handles various UI elements for Telerik documents.

Definition

Namespace:Telerik.Windows.Documents.UI.Layers

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class UIElementsLayer : IUILayer

Inheritance: objectUIElementsLayer

Derived Classes: ShapePreviewLayerTableMovementUILayer

Implements: IUILayer

Constructors

C#
public UIElementsLayer(string name, bool shouldUpdateWhenNotInvalidated)
Parameters:namestringshouldUpdateWhenNotInvalidatedbool
C#
public UIElementsLayer(string name)
Parameters:namestring

Fields

container

Canvas

C#
public Canvas container

Properties

Gets the current update context for the UI elements layer.

C#
public UILayerUpdateContext CurrentUpdateContext { get; }

Gets or sets a value indicating whether the layer can receive hit test queries.

C#
public bool IsHitTestVisible { get; set; }
Property Value:

True if the layer is hit test visible; otherwise, false.

Implements: IUILayer.IsHitTestVisible

Gets the name of the UIElementsLayer.

C#
public virtual string Name { get; }

Implements: IUILayer.Name

Determines whether the UI elements within the layer should be clipped.

C#
public virtual bool ShouldClip { get; }

Implements: IUILayer.ShouldClip

Determines whether the UI elements layer should be updated when it has not been invalidated.

C#
public virtual bool ShouldUpdateWhenNotInvalidated { get; }

Implements: IUILayer.ShouldUpdateWhenNotInvalidated

Methods

Adds a child UIElement to the UIElementsLayer.

C#
public void AddChild(UIElement uiElement)
Parameters:uiElementUIElement

The UIElement to be added as a child.

Arranges the child elements of the UI elements layer.

C#
public virtual void ArrangeChildren()

Implements: IUILayer.ArrangeChildren()

Removes all child elements from the UIElementsLayer.

C#
public void ClearChildren()

Implements: IUILayer.ClearChildren()

C#
protected virtual void ClearLayerOverride()

Executes a specified action when the presentation is changed.

C#
public virtual void DoOnPresentationChanged()

Implements: IUILayer.DoOnPresentationChanged()

Retrieves the UI element associated with the UIElementsLayer.

C#
public UIElement GetLayerUIElement()
Returns:

UIElement

The UI element associated with the current layer, or null if no element is associated.

Implements: IUILayer.GetLayerUIElement()

Updates the viewport of the UI elements layer based on the specified update context.

C#
public void UpdateViewPort(UILayerUpdateContext context)
Parameters:contextUILayerUpdateContext

The context that contains information about the update, such as the new dimensions and position of the viewport.

Implements: IUILayer.UpdateViewPort(UILayerUpdateContext)

Updates the viewport override for the UI elements layer based on the specified update context.

C#
public virtual void UpdateViewPortOverride(UILayerUpdateContext context)
Parameters:contextUILayerUpdateContext

The context containing information about the UI layer update.