Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - LEADTOOLS WPF | Help Version 16.5.9.25
EnableRubberBandSelection Property
See Also  Example
Leadtools.Windows.Controls Namespace > ImageList Class : EnableRubberBandSelection Property





Enables or disables rubber band selection in the ImageList. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property EnableRubberBandSelection As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ImageList
Dim value As Boolean
 
instance.EnableRubberBandSelection = value
 
value = instance.EnableRubberBandSelection
C# 
public bool EnableRubberBandSelection {get; set;}
C++/CLI 
public:
property bool EnableRubberBandSelection {
   bool get();
   void set (bool value);
}
XAML Attributes Usage 

<object EnableRubberBandSelection=bool/>

Dependencies Property Information 

Identifier field

EnableRubberBandSelectionProperty

Metadata properties set to true

None

XAML Attributes Usage 

<object EnableRubberBandSelection=bool/>

Dependencies Property Information 

Identifier field

EnableRubberBandSelectionProperty

Metadata properties set to true

None

Return Value

true to enable rubber band selection; otherwise it is false.

Example

For XAML example, refer to EnableRubberBandSelection.

Visual BasicCopy Code
Public Sub ImageList_EnableRubberBandSelection(ByVal imageList As ImageList)
   imageList.SelectionMode = SelectionMode.Multiple
   imageList.EnableRubberBandSelection = True

   Dim fillBrush As SolidColorBrush = New SolidColorBrush(Colors.Red)
   fillBrush.Opacity = 0.5

   imageList.RubberBandFill = fillBrush
End Sub
C#Copy Code
public void ImageList_EnableRubberBandSelection(ImageList imageList) 

   // Show the item text 
   imageList.SelectionMode = SelectionMode.Multiple; 
   imageList.EnableRubberBandSelection = true; 
 
   SolidColorBrush fillBrush = new SolidColorBrush(Colors.Red); 
   fillBrush.Opacity = .5; 
 
   imageList.RubberBandFill = fillBrush; 
}

Remarks

This property is used only if SelectionMode is set to Multiple. or Extended

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also