Adornment

StockSharp.Xaml.Diagram.GXDiagram

An adornment is a special kind of Part that is associated with another part, the AdornedPart.

继承自: Node

构造函数

Adornment()

Each Adornment has a LayerName of "Adornment".

属性

AdornedElement : FrameworkElement

Gets or sets the FrameworkElement that this adornment is associated with.

AdornedPart : Part

Gets the Part that this adornment is associated with.

ContainingGroups : IEnumerable<Group>

An Adornment is never a member of any group.

ContainingSubGraph : Group

An Adornment is never a member of any group.

Data : object

Adornments are always unbound, so this property is always null and cannot be set.

IsBoundToData : bool

Adornments are never bound to data, so this property is always false.

方法

MakeAdornment(FrameworkElement, DataTemplate) : Adornment

Assume adornments can't have their own adornments.

selelt
templ
MeasureOverride(Size) : Size

Before measuring this adornment, make sure we invalidate any SpotPanel or SelectionHandle that is the LocationElement.

constraint
UpdateAdornments()

Assume adornments don't have any adornments that need to be updated.

字段

AdornedElementProperty : DependencyProperty

Identifies the AdornedElement dependency property.