ClassRadListBox
Represents a control that displays a list of items with interactive features, allowing users to select, manipulate, and reorder items through touch and keyboard input. The RadListBox supports drag-and-drop functionality, customizable visual elements, and seamless scrolling experiences, making it suitable for advanced user interfaces. It includes various dependency properties such as DropVisualProvider and DragDropBehavior that enhance its interactivity, as well as powerful selection and navigation capabilities.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
[TelerikToolboxCategory("Data")]
public class RadListBox : ListControl, IMultiSelector, ISelector, ISelectorInteraction, IAutocomplete, IListControl, ICommandSource, IScrollingServiceCore, IScrollingInfo
Inheritance: objectItemsControlSelectorListControlRadListBox
Derived Classes:
Implements:
Inherited Members
Constructors
RadListBox()
Initializes a new instance of the RadListBox class.
Declaration
public RadListBox()
Fields
DataConverterProperty
Identifies the DataConverter dependency property.
Declaration
public static readonly DependencyProperty DataConverterProperty
Field Value
DependencyProperty
DragDropBehaviorProperty
Identifies the DragDropBehavior property.
Declaration
public static readonly DependencyProperty DragDropBehaviorProperty
Field Value
DependencyProperty
DragVisualProviderProperty
Identifies the DragVisualProvider dependency property.
Declaration
public static readonly DependencyProperty DragVisualProviderProperty
Field Value
DependencyProperty
DropVisualProviderProperty
Identifies the IsReadOnly property.
Declaration
public static readonly DependencyProperty DropVisualProviderProperty
Field Value
DependencyProperty
Properties
DataConverter
Gets or sets the DataConverter. This is a dependency property.
Declaration
public DataConverter DataConverter { get; set; }
Property Value
DragDropBehavior
Gets or sets the DragDropBehavior. This is a dependency property.
Declaration
public ListBoxDragDropBehavior DragDropBehavior { get; set; }
Property Value
DragVisualProvider
Gets or sets the DragVisualProvider. This is a dependency property.
Declaration
public IDragVisualProvider DragVisualProvider { get; set; }
Property Value
DropVisualProvider
Gets or sets the DropVisualProvider. This is a dependency property.
Declaration
public IDropVisualProvider DropVisualProvider { get; set; }
Property Value
Methods
GetContainerForItemOverride()
Creates or identifies the element that is used to display the given item.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
DependencyObject
The element that is used to display the given item.
Overrides
GetDataItem(UIElement)
Gets the data item according to its container.
Declaration
public override object GetDataItem(UIElement container)
Parameters
container
UIElement
The container.
Returns
Overrides
HandleKeyboardInput(Key)
When overridden in a derived class, is invoked whenever application code or internal processes call HandleKeyboardInput(Key). Override this method if a custom keyboard navigation is required.
Declaration
protected override bool HandleKeyboardInput(Key key)
Parameters
key
Key
The key.
Returns
Overrides
InitializeTextRetriever()
Initializes the text Retriever.
Declaration
protected override void InitializeTextRetriever()
Overrides
IsItemSelectable(object)
Determines whether an item is selectable or not.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call .
Declaration
public override void OnApplyTemplate()
Overrides
OnCreateAutomationPeer()
Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnItemsChanged(NotifyCollectionChangedEventArgs)
Raises the event.
Declaration
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
e
NotifyCollectionChangedEventArgs
The NotifyCollectionChangedEventArgs instance containing the event data.
Overrides
OnKeyDown(KeyEventArgs)
Invoked when the event is received.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
e
KeyEventArgs
Information about the event.
OnSelectionChanged(SelectionChangedEventArgs)
Called when the selection changes.
Declaration
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters
e
SelectionChangedEventArgs
The event data.
Overrides
OnTextInput(TextCompositionEventArgs)
Invoked when the event is received.
Declaration
protected override void OnTextInput(TextCompositionEventArgs e)
Parameters
e
TextCompositionEventArgs
Information about the event.
UpdateItems(NotifyCollectionChangedAction, IList, IList)
Updates the items when ItemsChanged occurs.
Declaration
protected override void UpdateItems(NotifyCollectionChangedAction action, IList newItems, IList oldItems)
Parameters
action
The action.
newItems
The new items.
oldItems
The old items.
Overrides