Share via


DragGestureData.Effects Property

Gets or sets the current drag-and-drop effects.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Property Effects As DragDropEffects
    Get
    Set
public DragDropEffects Effects { get; set; }
public:
property DragDropEffects Effects {
    DragDropEffects get ();
    void set (DragDropEffects value);
}
member Effects : DragDropEffects with get, set
function get Effects () : DragDropEffects
function set Effects (value : DragDropEffects)

Property Value

Type: System.Windows.DragDropEffects
A DragDropEffects object that represents the current drag-and-drop effects.

Exceptions

Exception Condition
ArgumentException

The effects are not in the allowed effects.

Remarks

The value of this property is copied back to the DragEventArgs for a drag-and-drop operation.

.NET Framework Security

See Also

Reference

DragGestureData Class

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility