Class DraggedAdorner
Represents the Dragged Adorner class
Inheritance
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class DraggedAdorner : Adorner
Constructors
DraggedAdorner(Object, DataTemplate, UIElement, AdornerLayer)
Initializes a new instance of the DraggedAdorner class.
Declaration
public DraggedAdorner(object dragDropData, DataTemplate dragDropTemplate, UIElement adornedElement, AdornerLayer adornerLayer)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dragDropData | The drag drop data. |
System.Windows.DataTemplate | dragDropTemplate | The drag drop template. |
System.Windows.UIElement | adornedElement | The adorned element. |
System.Windows.Documents.AdornerLayer | adornerLayer | The adorner layer. |
Properties
VisualChildrenCount
Gets the number of visual child elements within this element.
Declaration
protected override int VisualChildrenCount { get; }
Property Value
Type |
---|
System.Int32 |
Methods
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a System.Windows.FrameworkElement derived class.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | finalSize | The final area within the parent that this element should use to arrange itself and its children. |
Returns
Type | Description |
---|---|
System.Windows.Size | The actual size used. |
Detach()
Detaches this instance.
Declaration
public void Detach()
GetDesiredTransform(GeneralTransform)
Returns a 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)
Overrides System.Windows.Media.Visual.GetVisualChild(System.Int32), and returns a child at the specified index from a collection of child elements.
Declaration
protected override Visual GetVisualChild(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the requested child element in the collection. |
Returns
Type | Description |
---|---|
System.Windows.Media.Visual | The requested child element. This should not return null; if the provided index is out of range, an exception is thrown. |
MeasureOverride(Size)
Implements any custom measuring behavior for the adorner.
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 object representing the amount of layout space needed by the adorner. |
SetPosition(Double, Double)
Sets the position.
Declaration
public void SetPosition(double left, double top)
Parameters
Type | Name | Description |
---|---|---|
System.Double | left | The contentPresenter left. |
System.Double | top | The contentPresenter top. |