Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.ListBox Assembly / Xceed.Wpf.ListBox Namespace / ListBox Class / AllowDrag Property


In This Topic
    AllowDrag Property (ListBox)
    In This Topic
    Gets or sets a value indicating whether the ListBox can be a drag source for purposes of drag-and-drop operations.
    Syntax
    'Declaration
     
    Public Property AllowDrag As Boolean
    'Usage
     
    Dim instance As ListBox
    Dim value As Boolean
     
    instance.AllowDrag = value
     
    value = instance.AllowDrag
    public bool AllowDrag {get; set;}

    Property Value

    true if the ListBox can be a drag source; otherwise, false.
    Example
    You must implement the IDropTarget interface on a control you wish to be able to accept the dragged elements.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also