Intersoft ClientUI Documentation
IsDragable Property
See Also  Send Feedback
Intersoft.Client.UI.Controls.Interactivity Namespace > DragDropBehavior Class : IsDragable Property






Gets or sets a value that determines whether the attached object is dragable.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Behavior")>
Public Property IsDragable As Boolean
Visual Basic (Usage)Copy Code
Dim instance As DragDropBehavior
Dim value As Boolean
 
instance.IsDragable = value
 
value = instance.IsDragable
C# 
[CategoryAttribute("Behavior")]
public bool IsDragable {get; set;}
Delphi 
public read-write property IsDragable: Boolean; 
JScript 
CategoryAttribute("Behavior")
public function get,set IsDragable : boolean
Managed Extensions for C++ 
[CategoryAttribute("Behavior")]
public: __property bool get_IsDragable();
public: __property void set_IsDragable( 
   bool value
);
C++/CLI 
[CategoryAttribute("Behavior")]
public:
property bool IsDragable {
   bool get();
   void set (    bool value);
}

Remarks

This property determines whether the element attached with DragDropBehavior is dragable. When this property is set to False, the element will become un-dragable. However you can use DragDropPointBehavior to enable drag on specific element.

The following code shows how you can limit the drag source to an Image element using DragDropPointBehavior.

XAML Copy Code
<StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
    <i:Interaction.Behaviors>
        <Intersoft:DragDropBehavior IsDragable="False"/>
    </i:Interaction.Behaviors>
    <Image Source="folder.png" Height="64" Width="64">
        <i:Interaction.Behaviors>
            <Intersoft:DragDropPointBehavior IsDragable="True"/>
        </i:Interaction.Behaviors>
    </Image>
    <TextBlock Text="My Archive" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>

Notice that IsDragable property is used to disable and enable drag source on specific element.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.