Show / Hide Table of Contents

Class DragDropTarget<TItemsControlType, TItemContainerType>

A control that enabled drag and drop operations on an ItemsControl.

Inheritance
System.Object
DependencyObject
UIElement
FrameworkElement
Control
ContentControl
DragDropTarget<TItemsControlType, TItemContainerType>
DataGridDragDropTarget
DataPointSeriesDragDropTarget
ItemsControlDragDropTarget<TItemsControl, TItemContainerType>
PanelDragDropTarget
Implements
IAcceptDrop
Inherited Members
ContentControl.Content
ContentControl.ContentProperty
ContentControl.ContentTemplate
ContentControl.ContentTemplateProperty
ContentControl.OnContentChanged(Object, Object)
ContentControl.LogicalChildren
Control.EnableBaseControlHandlingOfVisualStates
Control.ManageIsEnabled(Boolean)
Control.Background
Control.BackgroundProperty
Control.BorderBrush
Control.BorderBrushProperty
Control.BorderThickness
Control.BorderThicknessProperty
Control.FontWeight
Control.FontWeightProperty
Control.FontStyle
Control.FontStyleProperty
Control.Foreground
Control.ForegroundProperty
Control.FontFamily
Control.FontFamilyProperty
Control.FontSize
Control.FontSizeProperty
Control.TextDecorations
Control.TextDecorationsProperty
Control.Padding
Control.PaddingProperty
Control.HorizontalContentAlignment
Control.HorizontalContentAlignmentProperty
Control.VerticalContentAlignment
Control.VerticalContentAlignmentProperty
Control.TabIndex
Control.TabIndexProperty
Control.IsTabStop
Control.IsTabStopProperty
Control.TabNavigation
Control.TabNavigationProperty
Control.Template
Control.TemplateProperty
Control.ApplyTemplate()
Control.GetTemplateChild(String)
Control.Focus()
Control.HandlesScrolling
Control.OnGotFocus(RoutedEventArgs)
Control.OnLostFocus(RoutedEventArgs)
Control.CreateDomElement(Object, Object)
Control.CharacterSpacingProperty
Control.CharacterSpacing
Control.FontStretchProperty
Control.FontStretch
Control.OnDrop(DragEventArgs)
Control.OnDragEnter(DragEventArgs)
Control.OnDragLeave(DragEventArgs)
Control.OnTextInputUpdate(TextCompositionEventArgs)
Control.MeasureOverride(Size)
Control.ArrangeOverride(Size)
FrameworkElement.LayoutUpdated
FrameworkElement.SizeChanged
FrameworkElement.ResourceLookupMode
FrameworkElement.StyleProperty
FrameworkElement.Style
FrameworkElement.DefaultStyleKeyProperty
FrameworkElement.DefaultStyleKey
FrameworkElement.OverridesDefaultStyleProperty
FrameworkElement.OverridesDefaultStyle
FrameworkElement.OnVisualParentChanged(DependencyObject)
FrameworkElement.VisualChildrenCount
FrameworkElement.GetVisualChild(Int32)
FrameworkElement.Parent
FrameworkElement.AddLogicalChild(Object)
FrameworkElement.RemoveLogicalChild(Object)
FrameworkElement.TemplatedParent
FrameworkElement.Resources
FrameworkElement.IsLoaded
FrameworkElement.SetBinding(DependencyProperty, BindingBase)
FrameworkElement.SetBinding(DependencyProperty, Binding)
FrameworkElement.GetBindingExpression(DependencyProperty)
FrameworkElement.Cursor
FrameworkElement.CursorProperty
FrameworkElement.FindName(String)
FrameworkElement.Name
FrameworkElement.NameProperty
FrameworkElement.DataContext
FrameworkElement.DataContextProperty
FrameworkElement.DataContextChanged
FrameworkElement.Triggers
FrameworkElement.FlowDirectionProperty
FrameworkElement.FlowDirection
FrameworkElement.LanguageProperty
FrameworkElement.Language
FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs)
FrameworkElement.Tag
FrameworkElement.TagProperty
FrameworkElement.LoadedEvent
FrameworkElement.Loaded
FrameworkElement.Unloaded
FrameworkElement.BindingValidationError
FrameworkElement.ContextMenuProperty
FrameworkElement.ContextMenu
FrameworkElement.ContextMenuOpening
FrameworkElement.ToolTipProperty
FrameworkElement.ToolTip
FrameworkElement.INTERNAL_OnDetachedFromVisualTree()
FrameworkElement.Height
FrameworkElement.HeightProperty
FrameworkElement.Width
FrameworkElement.WidthProperty
FrameworkElement.HorizontalAlignment
FrameworkElement.HorizontalAlignmentProperty
FrameworkElement.VerticalAlignment
FrameworkElement.VerticalAlignmentProperty
FrameworkElement.Margin
FrameworkElement.MarginProperty
FrameworkElement.MinHeight
FrameworkElement.MinHeightProperty
FrameworkElement.MinWidth
FrameworkElement.MinWidthProperty
FrameworkElement.MaxHeight
FrameworkElement.MaxHeightProperty
FrameworkElement.MaxWidth
FrameworkElement.MaxWidthProperty
FrameworkElement.ActualWidthProperty
FrameworkElement.ActualWidth
FrameworkElement.ActualHeightProperty
FrameworkElement.ActualHeight
UIElement.TransformToVisual(UIElement)
UIElement.OnCreateAutomationPeer()
UIElement.RenderSize
UIElement.DesiredSize
UIElement.InvalidateMeasure()
UIElement.InvalidateArrange()
UIElement.Measure(Size)
UIElement.Arrange(Rect)
UIElement.UpdateLayout()
UIElement.CacheMode
UIElement.CacheModeProperty
UIElement.Projection
UIElement.ProjectionProperty
UIElement.VisualParent
UIElement.AddVisualChild(UIElement)
UIElement.RemoveVisualChild(UIElement)
UIElement.OnVisualChildrenChanged(DependencyObject, DependencyObject)
UIElement.XamlSourcePath
UIElement.ClipToBounds
UIElement.ClipToBoundsProperty
UIElement.ClipProperty
UIElement.Clip
UIElement.IsEnabledProperty
UIElement.IsEnabled
UIElement.IsEnabledChanged
UIElement.EffectProperty
UIElement.Effect
UIElement.RenderTransformProperty
UIElement.RenderTransform
UIElement.RenderTransformOriginProperty
UIElement.RenderTransformOrigin
UIElement.UseLayoutRounding
UIElement.UseLayoutRoundingProperty
UIElement.Visibility
UIElement.VisibilityProperty
UIElement.IsVisibleProperty
UIElement.IsVisible
UIElement.IsVisibleChanged
UIElement.OpacityProperty
UIElement.Opacity
UIElement.OpacityMaskProperty
UIElement.OpacityMask
UIElement.IsHitTestVisible
UIElement.IsHitTestVisibleProperty
UIElement.AllowDrop
UIElement.AllowDropProperty
UIElement.CaptureMouse()
UIElement.IsMouseCaptured
UIElement.ReleaseMouseCapture()
UIElement.AllowScrollOnTouchMove
UIElement.AllowScrollOnTouchMoveProperty
UIElement.AddHandler(RoutedEvent, Delegate, Boolean)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.OnMouseMove(MouseEventArgs)
UIElement.MouseLeftButtonDownEvent
UIElement.MouseLeftButtonDown
UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)
UIElement.MouseRightButtonDownEvent
UIElement.MouseRightButtonDown
UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.MouseLeftButtonUpEvent
UIElement.MouseLeftButtonUp
UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.TextInputStartEvent
UIElement.TextInputStart
UIElement.OnTextInputStart(TextCompositionEventArgs)
UIElement.TextInputEvent
UIElement.TextInput
UIElement.OnTextInput(TextCompositionEventArgs)
UIElement.TextInputUpdateEvent
UIElement.TextInputUpdate
UIElement.TappedEvent
UIElement.Tapped
UIElement.OnTapped(TappedRoutedEventArgs)
UIElement.MouseRightButtonUpEvent
UIElement.MouseRightButtonUp
UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.OnKeyDown(KeyEventArgs)
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.OnKeyUp(KeyEventArgs)
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.LostMouseCapture
UIElement.OnLostMouseCapture(MouseEventArgs)
UIElement.INTERNAL_AttachToDomEvents()
UIElement.INTERNAL_DetachFromDomEvents()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Toolkit.dll
Syntax
public abstract class DragDropTarget<TItemsControlType, TItemContainerType> : ContentControl, IControl, IFrameworkElement, IUIElement, IDependencyObject, IAcceptDrop where TItemsControlType : UIElement where TItemContainerType : UIElement
Type Parameters
Name Description
TItemsControlType

The type of the items control.

TItemContainerType

The type of the item container.

Constructors

| Improve this Doc View Source

DragDropTarget()

Initializes a new instance of the ItemsControlDragAdorner class.

Declaration
protected DragDropTarget()

Fields

| Improve this Doc View Source

AllowedSourceEffectsProperty

Identifies the AllowedSourceEffects dependency property.

Declaration
public static readonly DependencyProperty AllowedSourceEffectsProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

DragContainerName

The name of the DragContainer template part.

Declaration
protected const string DragContainerName = "DragContainer"
Field Value
Type Description
System.String
| Improve this Doc View Source

DragDecoratorName

The name of the DragDecorator template part.

Declaration
protected const string DragDecoratorName = "DragDecorator"
Field Value
Type Description
System.String
| Improve this Doc View Source

DragPopupName

The name of the DragPopup template part.

Declaration
protected const string DragPopupName = "DragPopup"
Field Value
Type Description
System.String
| Improve this Doc View Source

InsertionIndicatorContainerName

The name of the insertion indicator container.

Declaration
protected const string InsertionIndicatorContainerName = "InsertionIndicatorContainer"
Field Value
Type Description
System.String
| Improve this Doc View Source

InsertionIndicatorName

The name of the insertion indicator template part.

Declaration
protected const string InsertionIndicatorName = "InsertionIndicator"
Field Value
Type Description
System.String

Properties

| Improve this Doc View Source

AllowedSourceEffects

Gets or sets the allowed effects when this DragDropTarget is the drag source.

Declaration
public DragDropEffects AllowedSourceEffects { get; set; }
Property Value
Type Description
DragDropEffects

Methods

| Improve this Doc View Source

AddItem(TItemsControlType, Object)

Adds an item to an items control.

Declaration
protected abstract void AddItem(TItemsControlType itemsControl, object data)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control.

System.Object data

The data to be inserted.

| Improve this Doc View Source

CanAddItem(TItemsControlType, Object)

Returns a value indicating whether an item can be added to the items control.

Declaration
protected abstract bool CanAddItem(TItemsControlType itemsControl, object data)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control.

System.Object data

The data to be added.

Returns
Type Description
System.Boolean

A value indicating whether an item can be added to the items control.

| Improve this Doc View Source

CanRemove(TItemsControlType)

Returns a value indicating whether an item can be removed from the items control.

Declaration
protected abstract bool CanRemove(TItemsControlType itemsControl)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control.

Returns
Type Description
System.Boolean

A value indicating whether an item can be removed from the items control.

| Improve this Doc View Source

CanScroll(TItemsControlType)

Returns a value indicating whether a given items control can scroll.

Declaration
protected virtual bool CanScroll(TItemsControlType itemsControl)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control.

Returns
Type Description
System.Boolean

The value indicating whether the given items control can scroll.

| Improve this Doc View Source

ContainerFromIndex(TItemsControlType, Int32)

Retrieves the item container at a given index.

Declaration
protected abstract TItemContainerType ContainerFromIndex(TItemsControlType itemsControl, int index)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control.

System.Int32 index

The index at which to retrieve the container.

Returns
Type Description
TItemContainerType

The item container at a given index.

| Improve this Doc View Source

GetDropTarget(DragEventArgs)

Retrieves the drop target of a drag event.

Declaration
protected virtual TItemsControlType GetDropTarget(DragEventArgs args)
Parameters
Type Name Description
DragEventArgs args

Information about the drag event.

Returns
Type Description
TItemsControlType

The drop target of a drag event.

| Improve this Doc View Source

GetDropTargetInsertionIndex(TItemsControlType, DragEventArgs)

Gets the adjusted insertion index within a drop target given information about a drag event.

Declaration
protected int GetDropTargetInsertionIndex(TItemsControlType dropTarget, DragEventArgs args)
Parameters
Type Name Description
TItemsControlType dropTarget

The drop target.

DragEventArgs args

Information about a drag event.

Returns
Type Description
System.Int32

The insertion index within the drop target.

| Improve this Doc View Source

GetDropTargetInsertionIndexOverride(TItemsControlType, DragEventArgs)

Gets the insertion index within a drop target given information about a drag event.

Declaration
protected virtual int GetDropTargetInsertionIndexOverride(TItemsControlType dropTarget, DragEventArgs args)
Parameters
Type Name Description
TItemsControlType dropTarget

The drop target.

DragEventArgs args

Information about a drag event.

Returns
Type Description
System.Int32

The insertion index within the drop target.

| Improve this Doc View Source

GetInsertionIndicatorGeometry(TItemsControlType, Int32, DragEventArgs)

Returns a geometry to use for the insertion indicator given an item container, the orientation of the items host panel, and a value indicating whether to insert before or after the item container.

Declaration
protected virtual Geometry GetInsertionIndicatorGeometry(TItemsControlType dropTarget, int insertionIndex, DragEventArgs dragEventArgs)
Parameters
Type Name Description
TItemsControlType dropTarget

The drop target.

System.Int32 insertionIndex

The index at which to insert the item.

DragEventArgs dragEventArgs

Information about the drag event.

Returns
Type Description
Geometry

The geometry to use for the insertion indicator given information about an IndicatingInsertionLocation event.

| Improve this Doc View Source

GetItemContainerAncestor(TItemsControlType, DependencyObject)

Returns the item container ancestor of a dependency object.

Declaration
public virtual TItemContainerType GetItemContainerAncestor(TItemsControlType itemsControl, DependencyObject dependencyObject)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control that contains the item container.

DependencyObject dependencyObject

The dependency object.

Returns
Type Description
TItemContainerType

The item container ancestor of the dependency object.

| Improve this Doc View Source

GetItemCount(TItemsControlType)

Gets the number of items in an items control.

Declaration
protected abstract int GetItemCount(TItemsControlType itemsControl)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control.

Returns
Type Description
System.Int32

The number of items in the items control.

| Improve this Doc View Source

GetItemsControlAncestor(DependencyObject)

Returns the items control ancestor of a dependency object.

Declaration
protected virtual TItemsControlType GetItemsControlAncestor(DependencyObject dependencyObject)
Parameters
Type Name Description
DependencyObject dependencyObject

The dependency object to retrieve the element for.

Returns
Type Description
TItemsControlType

The items control ancestor of the dependency object.

| Improve this Doc View Source

GetItemsHost(TItemsControlType)

Retrieves the items host for a given items control.

Declaration
protected abstract Panel GetItemsHost(TItemsControlType itemsControl)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control.

Returns
Type Description
Panel

The items host for a given items control.

| Improve this Doc View Source

IndexFromContainer(TItemsControlType, TItemContainerType)

Retrieves the index of an item container.

Declaration
protected abstract int? IndexFromContainer(TItemsControlType itemsControl, TItemContainerType itemContainer)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control.

TItemContainerType itemContainer

The item container.

Returns
Type Description
System.Nullable<System.Int32>

The index of an item container.

| Improve this Doc View Source

InsertItem(TItemsControlType, Int32, Object)

Inserts an item into an items control.

Declaration
protected abstract void InsertItem(TItemsControlType itemsControl, int index, object data)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control.

System.Int32 index

The index at which to insert the item.

System.Object data

The data to be inserted.

| Improve this Doc View Source

INTERNAL_OnAttachedToVisualTree()

Declaration
protected override void INTERNAL_OnAttachedToVisualTree()
Overrides
FrameworkElement.INTERNAL_OnAttachedToVisualTree()
| Improve this Doc View Source

IsDragWithinDragSource(DragEventArgs)

Returns a value indicating whether an item is being dragged within the drag source.

Declaration
protected bool IsDragWithinDragSource(DragEventArgs args)
Parameters
Type Name Description
DragEventArgs args

Information about the drag event.

Returns
Type Description
System.Boolean

A value indicating whether an item is being dragged within the drag source.

| Improve this Doc View Source

IsItemContainerOfItemsControl(TItemsControlType, DependencyObject)

Returns a value indicating whether a container belongs to an items control.

Declaration
protected abstract bool IsItemContainerOfItemsControl(TItemsControlType itemsControl, DependencyObject itemContainer)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control.

DependencyObject itemContainer

The item container.

Returns
Type Description
System.Boolean

A value indicating whether a container belongs to an items control.

| Improve this Doc View Source

ItemFromContainer(TItemsControlType, TItemContainerType)

Gets the item from an item container.

Declaration
protected abstract object ItemFromContainer(TItemsControlType itemsControl, TItemContainerType itemContainer)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control.

TItemContainerType itemContainer

The item container.

Returns
Type Description
System.Object

The data contained by the item container.

| Improve this Doc View Source

OnApplyTemplate()

This method is invoked when the template is applied.

Declaration
public override void OnApplyTemplate()
Overrides
Control.OnApplyTemplate()
| Improve this Doc View Source

OnDragEnter(DragEventArgs)

Raises the DragEnter event.

Declaration
protected virtual void OnDragEnter(DragEventArgs args)
Parameters
Type Name Description
DragEventArgs args

Information about the event.

| Improve this Doc View Source

OnDragEvent(DragEventArgs)

Updates the drag event information whenever a drag event occurs.

Declaration
protected virtual void OnDragEvent(DragEventArgs args)
Parameters
Type Name Description
DragEventArgs args

Information about the event.

| Improve this Doc View Source

OnDragLeave(DragEventArgs)

Raises the DragLeave event.

Declaration
protected virtual void OnDragLeave(DragEventArgs args)
Parameters
Type Name Description
DragEventArgs args

Information about the event.

| Improve this Doc View Source

OnDragOver(DragEventArgs)

Raises the DragOver event.

Declaration
protected virtual void OnDragOver(DragEventArgs args)
Parameters
Type Name Description
DragEventArgs args

Information about the event.

| Improve this Doc View Source

OnDrop(DragEventArgs)

An method that invokes the Drop event.

Declaration
protected virtual void OnDrop(DragEventArgs args)
Parameters
Type Name Description
DragEventArgs args

Information about the event.

| Improve this Doc View Source

OnDropOverride(DragEventArgs)

Adds data to the drop target.

Declaration
protected virtual void OnDropOverride(DragEventArgs args)
Parameters
Type Name Description
DragEventArgs args

Information about the Drop event.

| Improve this Doc View Source

OnGiveFeedback(GiveFeedbackEventArgs)

Raises the GiveFeedback event.

Declaration
protected virtual void OnGiveFeedback(GiveFeedbackEventArgs args)
Parameters
Type Name Description
GiveFeedbackEventArgs args

Information about the event.

| Improve this Doc View Source

OnIndicatingInsertionLocation(IndicatingInsertionLocationEventArgs<TItemsControlType>)

A method which raises the IndicatingInsertionLocation event.

Declaration
protected virtual void OnIndicatingInsertionLocation(IndicatingInsertionLocationEventArgs<TItemsControlType> args)
Parameters
Type Name Description
IndicatingInsertionLocationEventArgs<TItemsControlType> args

Information about the event.

| Improve this Doc View Source

OnItemDragCompleted(ItemDragEventArgs)

This method is invoked when an item drag is completed.

Declaration
protected virtual void OnItemDragCompleted(ItemDragEventArgs args)
Parameters
Type Name Description
ItemDragEventArgs args

Information about the event.

| Improve this Doc View Source

OnItemDragStarting(ItemDragEventArgs)

A method that raises the item drag starting event.

Declaration
protected virtual void OnItemDragStarting(ItemDragEventArgs eventArgs)
Parameters
Type Name Description
ItemDragEventArgs eventArgs

Information about the drag starting event.

| Improve this Doc View Source

OnItemDroppedOnSource(DragEventArgs)

Raises the ItemDroppedOnSource event.

Declaration
public virtual void OnItemDroppedOnSource(DragEventArgs args)
Parameters
Type Name Description
DragEventArgs args

Information about the ItemDroppedOnSource event.

| Improve this Doc View Source

OnItemDroppedOnTarget(ItemDragEventArgs)

Raises the ItemDragCompleted event.

Declaration
protected virtual void OnItemDroppedOnTarget(ItemDragEventArgs args)
Parameters
Type Name Description
ItemDragEventArgs args

Information about the event.

| Improve this Doc View Source

OnQueryContinueDrag(QueryContinueDragEventArgs)

Raises the QueryContinueDrag event.

Declaration
protected virtual void OnQueryContinueDrag(QueryContinueDragEventArgs args)
Parameters
Type Name Description
QueryContinueDragEventArgs args

Information about the event.

| Improve this Doc View Source

RemoveItem(TItemsControlType, Object)

Removes an item from an items control.

Declaration
protected abstract void RemoveItem(TItemsControlType itemsControl, object data)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control.

System.Object data

The data to be removed.

| Improve this Doc View Source

RemoveItemAtIndex(TItemsControlType, Int32)

Removes an item from an items control by index.

Declaration
protected virtual void RemoveItemAtIndex(TItemsControlType itemsControl, int index)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control.

System.Int32 index

The index of the item to be removed.

| Improve this Doc View Source

ScrollIntoView(TItemsControlType, TItemContainerType)

Scrolls a given item container into the view.

Declaration
protected virtual void ScrollIntoView(TItemsControlType itemsControl, TItemContainerType itemContainer)
Parameters
Type Name Description
TItemsControlType itemsControl

The items control that contains the item container.

TItemContainerType itemContainer

The item container to scroll into view.

Events

| Improve this Doc View Source

DragEnter

An event raised when the an item is dragged into the adorner.

Declaration
public event DragEventHandler DragEnter
Event Type
Type Description
DragEventHandler
| Improve this Doc View Source

DragLeave

An event raised when the an item is dragged out of the adorner.

Declaration
public event DragEventHandler DragLeave
Event Type
Type Description
DragEventHandler
| Improve this Doc View Source

DragOver

An event raised when the an item is dragged over the adorner.

Declaration
public event DragEventHandler DragOver
Event Type
Type Description
DragEventHandler
| Improve this Doc View Source

Drop

An event raised when the an item is dropped onto the adorner.

Declaration
public event DragEventHandler Drop
Event Type
Type Description
DragEventHandler
| Improve this Doc View Source

GiveFeedback

An event raised when the feedback about the drag operations is requested from the adorner.

Declaration
public event GiveFeedbackEventHandler GiveFeedback
Event Type
Type Description
GiveFeedbackEventHandler
| Improve this Doc View Source

ItemDragCompleted

An event raised when the an item drag is completed.

Declaration
public event EventHandler<ItemDragEventArgs> ItemDragCompleted
Event Type
Type Description
System.EventHandler<ItemDragEventArgs>
| Improve this Doc View Source

ItemDragStarting

An event raised when a drag operation is starting on an item.

Declaration
public event EventHandler<ItemDragEventArgs> ItemDragStarting
Event Type
Type Description
System.EventHandler<ItemDragEventArgs>
| Improve this Doc View Source

ItemDroppedOnSource

An event raised when the an item is dropped onto the adorner.

Declaration
public event DragEventHandler ItemDroppedOnSource
Event Type
Type Description
DragEventHandler
| Improve this Doc View Source

ItemDroppedOnTarget

This event is raised when an item is dropped on a target.

Declaration
public event EventHandler<ItemDragEventArgs> ItemDroppedOnTarget
Event Type
Type Description
System.EventHandler<ItemDragEventArgs>
| Improve this Doc View Source

QueryContinueDrag

An event raised when the adorner is queries regarding the drag operation.

Declaration
public event QueryContinueDragEventHandler QueryContinueDrag
Event Type
Type Description
QueryContinueDragEventHandler

Explicit Interface Implementations

| Improve this Doc View Source

IAcceptDrop.OnDragEnter(DragEventArgs)

Raises the DragEnter event.

Declaration
void IAcceptDrop.OnDragEnter(DragEventArgs args)
Parameters
Type Name Description
DragEventArgs args

Information about the event.

| Improve this Doc View Source

IAcceptDrop.OnDragLeave(DragEventArgs)

Raises the DragLeave event.

Declaration
void IAcceptDrop.OnDragLeave(DragEventArgs args)
Parameters
Type Name Description
DragEventArgs args

Information about the event.

| Improve this Doc View Source

IAcceptDrop.OnDragOver(DragEventArgs)

Raises the DragOver event.

Declaration
void IAcceptDrop.OnDragOver(DragEventArgs args)
Parameters
Type Name Description
DragEventArgs args

Information about the event.

| Improve this Doc View Source

IAcceptDrop.OnDrop(DragEventArgs)

Raises the Drop event.

Declaration
void IAcceptDrop.OnDrop(DragEventArgs args)
Parameters
Type Name Description
DragEventArgs args

Information about the event.

| Improve this Doc View Source

IAcceptDrop.OnGiveFeedback(GiveFeedbackEventArgs)

Raises the GiveFeedback event.

Declaration
void IAcceptDrop.OnGiveFeedback(GiveFeedbackEventArgs args)
Parameters
Type Name Description
GiveFeedbackEventArgs args

Information about the event.

| Improve this Doc View Source

IAcceptDrop.OnQueryContinueDrag(QueryContinueDragEventArgs)

Raises the QueryContinueDrag event.

Declaration
void IAcceptDrop.OnQueryContinueDrag(QueryContinueDragEventArgs args)
Parameters
Type Name Description
QueryContinueDragEventArgs args

Information about the event.

Implements

IAcceptDrop

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
UIElementExtendedRoutedEventExtensions.AddHandler(UIElement, ExtendedRoutedEvent, Delegate, Boolean)
UIElementExtendedRoutedEventExtensions.RemoveHandler(UIElement, ExtendedRoutedEvent, Delegate)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
VisualTreeExtensions.GetBoundsRelativeTo(FrameworkElement, UIElement)
VisualTreeExtensions.InvokeOnLayoutUpdated(FrameworkElement, Action)
  • Improve this Doc
  • View Source