Class DragItemView
To display the dragging item by provided drag and drop template.
Implements
IDrawable
IAbsoluteLayout
ILayout
IView
IElement
ITransform
IContainer
IList<IView>
ICollection<IView>
IEnumerable<IView>
ISafeAreaView
IPadding
ICrossPlatformLayout
IVisualTreeElement
Inherited Members
Namespace: Syncfusion.Maui.ListView
Assembly: Syncfusion.Maui.ListView.dll
Syntax
public class DragItemView : SfContentView, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement
Constructors
DragItemView()
Initializes a new instance of the DragItemView class.
Declaration
public DragItemView()
Methods
ArrangeContent(Rect)
Arranges the DragView.
Declaration
protected override Size ArrangeContent(Rect bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| Rect | bounds | The bounds. |
Returns
| Type | Description |
|---|---|
| Size | It returns the size. |
Overrides
MeasureContent(double, double)
Measures the DragView item.
Declaration
protected override Size MeasureContent(double widthConstraint, double heightConstraint)
Parameters
| Type | Name | Description |
|---|---|---|
| double | widthConstraint | Available width of the Parent view. |
| double | heightConstraint | Available height of the Parent view. |
Returns
| Type | Description |
|---|---|
| Size | It returns the Size. |
Overrides
OnChildAdded(Element)
To force layout the item after added into DragItemView.
Declaration
protected override void OnChildAdded(Element child)
Parameters
| Type | Name | Description |
|---|---|---|
| Element | child | Indicates the child element of the view. |
OnDraw(ICanvas, RectF)
Draw method.
Declaration
protected override void OnDraw(ICanvas canvas, RectF dirtyRect)
Parameters
| Type | Name | Description |
|---|---|---|
| ICanvas | canvas | The Canvas. |
| RectF | dirtyRect | The rectangle. |
Overrides
Implements
Microsoft.Maui.Graphics.IDrawable
Microsoft.Maui.IAbsoluteLayout
Microsoft.Maui.ILayout
Microsoft.Maui.IView
Microsoft.Maui.IElement
Microsoft.Maui.ITransform
Microsoft.Maui.IContainer
Microsoft.Maui.ISafeAreaView
Microsoft.Maui.IPadding
Microsoft.Maui.ICrossPlatformLayout
Microsoft.Maui.IVisualTreeElement