WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TemplatedAdornerBase

    Show / Hide Table of Contents

    Class TemplatedAdornerBase

    Base class for the adorners with templates support.

    Inheritance
    System.Object
    TemplatedAdornerBase
    GaugeAdorner
    ContextAdorner
    CutawayAdorner
    DragMarkerAdorner
    MoveMDIAdorner
    RibbonAdorner
    TreeViewColumnHeaderAdorner
    TreeViewRowDragMarkerAdorner
    UIElementAdorner
    Implements
    System.IDisposable
    Namespace: Syncfusion.Windows.Shared
    Assembly: Syncfusion.Shared.Wpf.dll
    Syntax
    public class TemplatedAdornerBase : Adorner, IDisposable

    Constructors

    TemplatedAdornerBase(UIElement)

    Initializes a new instance of the TemplatedAdornerBase class.

    Declaration
    public TemplatedAdornerBase(UIElement adornedElement)
    Parameters
    Type Name Description
    System.Windows.UIElement adornedElement

    The actual adorned element

    Fields

    OffsetXProperty

    Identifies OffsetX dependency property.

    Declaration
    public static readonly DependencyProperty OffsetXProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    OffsetYProperty

    Identifies OffsetY dependency property.

    Declaration
    public static readonly DependencyProperty OffsetYProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Properties

    InnerControl

    Gets Syncfusion.Windows.Shared.TemplatedAdornerInternalControl that represents inner control.

    Declaration
    protected TemplatedAdornerInternalControl InnerControl { get; }
    Property Value
    Type Description
    Syncfusion.Windows.Shared.TemplatedAdornerInternalControl

    LogicalChildren

    Gets an enumerator for logical child elements.

    Declaration
    protected override IEnumerator LogicalChildren { get; }
    Property Value
    Type Description
    System.Collections.IEnumerator

    OffsetX

    Gets or sets the value that describes horizontal offset of adorner.

    Declaration
    public double OffsetX { get; set; }
    Property Value
    Type Description
    System.Double

    OffsetY

    Gets or sets the value that describes vertical offset of adorner.

    Declaration
    public double OffsetY { get; set; }
    Property Value
    Type Description
    System.Double

    VisualChildrenCount

    Gets visual children count, always 1.

    Declaration
    protected override int VisualChildrenCount { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    ArrangeOverride(Size)

    Arranges inner control to the full size.

    Declaration
    protected override Size ArrangeOverride(Size finalSize)
    Parameters
    Type Name Description
    System.Windows.Size finalSize

    The final area that this element should use to arrange itself and its children.

    Returns
    Type Description
    System.Windows.Size

    The actual size used.

    Dispose()

    Dispose the element.

    Declaration
    public void Dispose()

    GetDesiredTransform(GeneralTransform)

    Calculates System.Windows.Media.Transform for the adorner, based on the transform that is currently applied to the adorned element.

    Declaration
    public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
    Parameters
    Type Name Description
    System.Windows.Media.GeneralTransform transform

    The transform that is currently applied to the adorned element.

    Returns
    Type Description
    System.Windows.Media.GeneralTransform

    A transform to apply to the adorner.

    GetVisualChild(Int32)

    Gets visual by index.

    Declaration
    protected override Visual GetVisualChild(int index)
    Parameters
    Type Name Description
    System.Int32 index

    Index of the child, the only valid value is 0.

    Returns
    Type Description
    System.Windows.Media.Visual

    Visual child.

    MeasureOverride(Size)

    Measures content.

    Declaration
    protected override Size MeasureOverride(Size constraint)
    Parameters
    Type Name Description
    System.Windows.Size constraint

    A size to constrain the adorner to.

    Returns
    Type Description
    System.Windows.Size

    A System.Windows.Size value representing the amount of layout space needed by the adorner.

    Events

    OffsetXChanged

    Event that is raised when OffsetX property is changed.

    Declaration
    public event PropertyChangedCallback OffsetXChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    OffsetYChanged

    Event that is raised when OffsetY property is changed.

    Declaration
    public event PropertyChangedCallback OffsetYChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved