Intersoft ClientUI Documentation
UXListBoxItem Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Aqua.UXCollection Namespace : UXListBoxItem Class






Represents a control that displays list item.

Object Model

UXListBoxItem Class

Syntax

Visual Basic (Declaration) 
<TemplatePartAttribute(Name="FillColor2", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)>
<DescriptionAttribute("Represents a control that displays list item.")>
<TemplateVisualStateAttribute(Name="Unselected", GroupName="SelectionStates")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")>
<TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")>
<TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")>
<TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)>
<TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="FillColor", Type=System.Windows.Controls.Border)>
Public Class UXListBoxItem 
   Inherits Intersoft.Client.Framework.ISSelectionItemControl
   Implements IControlIFramework, ILicensing, ISelectionItemITransformInfo 
Visual Basic (Usage)Copy Code
Dim instance As UXListBoxItem
C# 
[TemplatePartAttribute(Name="FillColor2", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)]
[DescriptionAttribute("Represents a control that displays list item.")]
[TemplateVisualStateAttribute(Name="Unselected", GroupName="SelectionStates")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="FillColor", Type=System.Windows.Controls.Border)]
public class UXListBoxItem : Intersoft.Client.Framework.ISSelectionItemControl, IControlIFramework, ILicensing, ISelectionItemITransformInfo  
Delphi 
public class UXListBoxItem = class(Intersoft.Client.Framework.ISSelectionItemControl, IControl, IFramework, ILicensing, ISelectionItem, ITransformInfo)
JScript 
TemplatePartAttribute(Name="FillColor2", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)
DescriptionAttribute("Represents a control that displays list item.")
TemplateVisualStateAttribute(Name="Unselected", GroupName="SelectionStates")
TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")
TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")
TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")
TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")
TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")
TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)
TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")
TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="FillColor", Type=System.Windows.Controls.Border)
public class UXListBoxItem extends Intersoft.Client.Framework.ISSelectionItemControl implements IControlIFramework, ILicensing, ISelectionItemITransformInfo 
Managed Extensions for C++ 
[TemplatePartAttribute(Name="FillColor2", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)]
[DescriptionAttribute("Represents a control that displays list item.")]
[TemplateVisualStateAttribute(Name="Unselected", GroupName="SelectionStates")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="FillColor", Type=System.Windows.Controls.Border)]
public __gc class UXListBoxItem : public Intersoft.Client.Framework.ISSelectionItemControl, IControlIFramework, ILicensing, ISelectionItemITransformInfo  
C++/CLI 
[TemplatePartAttribute(Name="FillColor2", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)]
[DescriptionAttribute("Represents a control that displays list item.")]
[TemplateVisualStateAttribute(Name="Unselected", GroupName="SelectionStates")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="FillColor", Type=System.Windows.Controls.Border)]
public ref class UXListBoxItem : public Intersoft.Client.Framework.ISSelectionItemControl, IControlIFramework, ILicensing, ISelectionItemITransformInfo  

Example

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>

Remarks

The item container type of UXListBox is UXListBoxItem.

UXListBoxItem supports ImageContent model, so you can use the ImageMemberPath to bind an image field to the image element of UXListBoxItem.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ContentControl
                  Intersoft.Client.Framework.ISContentControl
                     Intersoft.Client.Framework.ISSelectionItemControl
                        Intersoft.Client.UI.Aqua.UXCollection.UXListBoxItem

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.