Intersoft.Client.UI.Aqua.UXCollection Namespace : UXListBox Class |
<TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Controls.Border)> <TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)> <TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)> <TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)> <StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)> <StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXListBoxItem)> <DescriptionAttribute("Represents a list control that displays a collection of UXListBoxItem.")> Public Class UXListBox Inherits Intersoft.Client.UI.Controls.Interactivity.ISDragableMultipleSelectionControl Implements Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.IMultipleSelection, Intersoft.Client.Framework.ISelection, Intersoft.Client.UI.Controls.Interactivity.IDropable
Dim instance As UXListBox
[TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)] [StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)] [StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXListBoxItem)] [DescriptionAttribute("Represents a list control that displays a collection of UXListBoxItem.")] public class UXListBox : Intersoft.Client.UI.Controls.Interactivity.ISDragableMultipleSelectionControl, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.IMultipleSelection, Intersoft.Client.Framework.ISelection, Intersoft.Client.UI.Controls.Interactivity.IDropable
[TemplatePartAttribute(Name="BorderElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="ScrollViewer", Type=Intersoft.Client.UI.Controls.UXScrollViewer)] [StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=Intersoft.Client.UI.Controls.UXScrollViewer)] [StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXCollection.UXListBoxItem)] [DescriptionAttribute("Represents a list control that displays a collection of UXListBoxItem.")] public ref class UXListBox : public Intersoft.Client.UI.Controls.Interactivity.ISDragableMultipleSelectionControl, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.IMultipleSelection, Intersoft.Client.Framework.ISelection, Intersoft.Client.UI.Controls.Interactivity.IDropable
UXListBox is inherited from ISMultipleSelectionControl, which means it can be used to perform a single selection and multiple selection depending on the mode. For more information about selection control, see ItemsControl Overview and Content Model Overview respectively.
UXListBox has three selection modes such as discussed in the following list.
You can navigate between items by using arrow keys in the keyboard. In Single mode, navigating between items will change the selection immediately.
In Multiple mode you, need to use SpaceBar to select or unselect an item. You use arrow keys to navigate between the items in the list box.
The following example shows how to create simple list box.
XAML |
Copy Code
|
---|---|
<Intersoft:UXListBox HorizontalAlignment="Center" VerticalAlignment="Center" Width="150" ItemContentType="ContentAndImage"> <Intersoft:UXListBoxItem Content="Anton" Icon="Anton.jpg"/> <Intersoft:UXListBoxItem Content="Brad" Icon="Brad.jpg"/> <Intersoft:UXListBoxItem Content="David" Icon="David.jpg"/> <Intersoft:UXListBoxItem Content="Duke" Icon="Duke.jpg"/> <Intersoft:UXListBoxItem Content="Lisa" Icon="Lisa.jpg"/> </Intersoft:UXListBox> |
System.Object
System.Windows.DependencyObject
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.ItemsControl
Intersoft.Client.Framework.ISItemsControl
Intersoft.Client.Framework.ISSelectionControl
Intersoft.Client.Framework.ISMultipleSelectionControl
Intersoft.Client.UI.Controls.Interactivity.ISDragableMultipleSelectionControl
Intersoft.Client.UI.Aqua.UXCollection.UXListBox
Intersoft.Client.UI.Aqua.UXCollection.UXVirtualizingListBox
Target Platforms: 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