skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadListBox

Represents a ListBox control.

Inheritance
System.Object
ItemsControl
ItemsControlOnItemsSourceChanged
ItemsControlSelector
ListControl
RadListBox
RadClock
RadColorPaletteView
RadGallery
Inherited Members
ListControl.CanAutocompleteSelectItemsProperty
ListControl.TextSearchModeProperty
ListControl.CanAutocompleteSelectPartialMatchesProperty
ListControl.TypedTextProperty
ListControl.CommandProperty
ListControl.CommandParameterProperty
ListControl.CommandTargetProperty
ListControl.CanKeyboardNavigationSelectItemsProperty
ListControl.IsScrollIntoViewEnabledProperty
ListControl.MouseDoubleClickEvent
ListControl.PrepareContainerForItemOverride(DependencyObject, Object)
ListControl.ClearContainerForItemOverride(DependencyObject, Object)
ListControl.OnItemsSourceChanged(IEnumerable, IEnumerable)
ListControl.HighlightedIndexChanged(Int32, Key)
ListControl.OnMatchingItemChanged()
ListControl.OnAutocompleteBehaviorTypedTextChanged()
ListControl.IsItemItsOwnContainerOverride(Object)
ListControl.IsIndexSelectable(Int32)
ListControl.OnSelectionModeChanged()
ListControl.CanPerformSelection()
ListControl.GetScrollViewerPart()
ListControl.ScrollIntoView(Object)
ListControl.ScrollIntoView(Int32)
ListControl.IScrollingInfo.TransformFromDropTargetToViewPort(Point)
ListControl.IScrollingServiceCore.ScrollVertical(Double)
ListControl.IScrollingServiceCore.ScrollHorizontal(Double)
ListControl.SelectAllCommand
ListControl.CanAutocompleteSelectItems
ListControl.CanAutocompleteSelectPartialMatches
ListControl.TextSearchMode
ListControl.CanKeyboardNavigationSelectItems
ListControl.IsScrollIntoViewEnabled
ListControl.TypedText
ListControl.Command
ListControl.CommandParameter
ListControl.CommandTarget
ListControl.IsItemsHostVisible
ListControl.HighlightedItem
ListControl.KeyboardNavigation
ListControl.AutocompleteBehavior
ListControl.HighlightedIndex
ListControl.IScrollingInfo.ViewportHeight
ListControl.IScrollingInfo.ViewportWidth
ListControl.IScrollingInfo.HorizontalOffset
ListControl.IScrollingInfo.VerticalOffset
ListControl.IScrollingInfo.ExtentHeight
ListControl.IScrollingInfo.ExtentWidth
ListControl.IListControl.Items
ListControl.MouseDoubleClick
ItemsControlSelector.SelectionModeProperty
ItemsControlSelector.IsSynchronizedWithCurrentItemProperty
ItemsControlSelector.SelectedIndexProperty
ItemsControlSelector.SelectedItemProperty
ItemsControlSelector.SelectedValueProperty
ItemsControlSelector.SelectedValuePathProperty
ItemsControlSelector.TextProperty
ItemsControlSelector.TextPathProperty
ItemsControlSelector.EnableSelectionCachingProperty
ItemsControlSelector.SelectionChangedEvent
ItemsControlSelector.ISelectorInteraction.IsItemSelectable(Object)
ItemsControlSelector.ISelectorInteraction.GetItems()
ItemsControlSelector.ISelectorInteraction.MoveCurrentItemInCollectionView(Object)
ItemsControlSelector.add_SelectionChanged(SelectionChangedEventHandler)
ItemsControlSelector.remove_SelectionChanged(SelectionChangedEventHandler)
ItemsControlSelector.InitializeValueRetriever()
ItemsControlSelector.InitializeSelectionBehavior()
ItemsControlSelector.GetSelectionBehavior()
ItemsControlSelector.ISelectorInteraction.IsDefaultCollectionView
ItemsControlSelector.SelectionMode
ItemsControlSelector.IsSynchronizedWithCurrentItem
ItemsControlSelector.SelectedItems
ItemsControlSelector.SelectionHelper
ItemsControlSelector.SelectedIndex
ItemsControlSelector.SelectedItem
ItemsControlSelector.SelectedValue
ItemsControlSelector.SelectedValuePath
ItemsControlSelector.SelectedValueBinding
ItemsControlSelector.TextBinding
ItemsControlSelector.Text
ItemsControlSelector.TextPath
ItemsControlSelector.EnableSelectionCaching
ItemsControlSelector.ItemSearch
ItemsControlSelector.ValueRetriever
ItemsControlSelector.TextRetriever
ItemsControlSelector.SelectionChanged
ItemsControl.ItemContainerStyleProperty
ItemsControl.IsTextSearchEnabledProperty
ItemsControl.ItemContainerStyleSelectorProperty
ItemsControl.ItemTemplateSelectorProperty
ItemsControl.IsFocusedProperty
ItemsControl.HasItemsProperty
ItemsControl.ItemsControlFromItemContainer(DependencyObject)
ItemsControl.ChangeVisualState()
ItemsControl.ChangeVisualState(Boolean)
ItemsControl.OnIsEnabledChanged(DependencyPropertyChangedEventArgs)
ItemsControl.OnGotFocus(RoutedEventArgs)
ItemsControl.OnLostFocus(RoutedEventArgs)
ItemsControl.OnItemTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)
ItemsControl.OnIsFocusedChanged(DependencyPropertyChangedEventArgs)
ItemsControl.IsTextSearchEnabled
ItemsControl.HasItems
ItemsControl.IsFocused
ItemsControl.ItemContainerStyle
ItemsControl.ItemContainerStyleSelector
ItemsControl.ItemTemplateSelector
ItemsControl.OverrideStyles
ItemsControl.ItemContainerGenerator
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll

Syntax

[TelerikToolboxCategory("Data")]
public class RadListBox : ListControl, IMultiSelector, ISelector, ISelectorInteraction, IAutocomplete, ISupportInitialize, IListControl, ICommandSource, IScrollingServiceCore, IScrollingInfo

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
System.Windows.DependencyProperty

DragDropBehaviorProperty

Identifies the DragDropBehavior property.

Declaration
public static readonly DependencyProperty DragDropBehaviorProperty
Field Value
System.Windows.DependencyProperty

DragVisualProviderProperty

Identifies the DragVisualProvider dependency property.

Declaration
public static readonly DependencyProperty DragVisualProviderProperty
Field Value
System.Windows.DependencyProperty

DropVisualProviderProperty

Identifies the IsReadOnly property.

Declaration
public static readonly DependencyProperty DropVisualProviderProperty
Field Value
System.Windows.DependencyProperty

Properties

DataConverter

Gets or sets the DataConverter. This is a dependency property.

Declaration
public DataConverter DataConverter { get; set; }
Property Value
DataConverter

DragDropBehavior

Gets or sets the DragDropBehavior. This is a dependency property.

Declaration
public ListBoxDragDropBehavior DragDropBehavior { get; set; }
Property Value
ListBoxDragDropBehavior

DragVisualProvider

Gets or sets the DragVisualProvider. This is a dependency property.

Declaration
public IDragVisualProvider DragVisualProvider { get; set; }
Property Value
IDragVisualProvider

DropVisualProvider

Gets or sets the DropVisualProvider. This is a dependency property.

Declaration
public IDropVisualProvider DropVisualProvider { get; set; }
Property Value
IDropVisualProvider

Methods

ClearContainerStates(FrameworkElement)

Clears the properties that effect the visual states for the given container. This method is called when clearing container for item override.

Declaration
protected override void ClearContainerStates(FrameworkElement container)
Parameters
System.Windows.FrameworkElement container

The container which is cleared for item override.

Overrides
ListControl.ClearContainerStates(FrameworkElement)

GetContainerForItemOverride()

Creates or identifies the element that is used to display the given item.

Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
System.Windows.DependencyObject

The element that is used to display the given item.

Overrides
ListControl.GetContainerForItemOverride()

GetDataItem(UIElement)

Gets the data item according to its container.

Declaration
public override object GetDataItem(UIElement container)
Parameters
System.Windows.UIElement container

The container.

Returns
System.Object

Overrides
ItemsControlSelector.GetDataItem(UIElement)

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
System.Windows.Input.Key key

The key.

Returns
System.Boolean

Overrides
ListControl.HandleKeyboardInput(Key)

InitializeTextRetriever()

Initializes the text Retriever.

Declaration
protected override void InitializeTextRetriever()
Overrides
ItemsControlSelector.InitializeTextRetriever()

IsItemSelectable(Object)

Determines whether an item is selectable or not.

Declaration
protected override bool IsItemSelectable(object item)
Parameters
System.Object item

The item.

Returns
System.Boolean

Overrides
ItemsControlSelector.IsItemSelectable(Object)

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.

Declaration
public override void OnApplyTemplate()
Overrides
ListControl.OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer

OnIsReadOnlyChanged()

Called when IsReadOnly property is changed.

Declaration
protected virtual void OnIsReadOnlyChanged()

OnItemsChanged(NotifyCollectionChangedEventArgs)

Raises the ItemsChanged event.

Declaration
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
System.Collections.Specialized.NotifyCollectionChangedEventArgs e

The System.Collections.Specialized.NotifyCollectionChangedEventArgs instance containing the event data.

Overrides
ItemsControlSelector.OnItemsChanged(NotifyCollectionChangedEventArgs)

OnKeyDown(KeyEventArgs)

Invoked when the System.Windows.UIElement.KeyDown event is received.

Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
System.Windows.Input.KeyEventArgs e

Information about the event.

OnSelectionChanged(SelectionChangedEventArgs)

Called when the selection changes.

Declaration
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters
SelectionChangedEventArgs e

The event data.

Overrides
ListControl.OnSelectionChanged(SelectionChangedEventArgs)

OnTextInput(TextCompositionEventArgs)

Invoked when the System.Windows.UIElement.TextInput event is received.

Declaration
protected override void OnTextInput(TextCompositionEventArgs e)
Parameters
System.Windows.Input.TextCompositionEventArgs e

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
System.Collections.Specialized.NotifyCollectionChangedAction action

The action.

System.Collections.IList newItems

The new items.

System.Collections.IList oldItems

The old items.

Overrides
ItemsControlSelector.UpdateItems(NotifyCollectionChangedAction, IList, IList)

Extension Methods

ItemsControlSelectorExtensions.ContainerFromItemOrContainer(ItemsControlSelector, Object)
ItemsControlSelectorExtensions.ContainerFromIndex(ItemsControlSelector, Int32)
CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.