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






Represents a control that displays list item.

Object Model

UXComboBoxItem Class

Syntax

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

Remarks

The item container type of UXComboBox is UXComboBoxItem.

UXComboBoxItem supports ImageContent model. You can use the ImageMemberPath to bind an image field to the image element of UXComboBoxItem.

View Copy Code
<UserControl x:Class="ClientUI.Samples.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Intersoft="http://intersoft.clientui.com/schemas"    
    xmlns:vm="clr-namespace:ClientUI.Samples.ViewModels"
    mc:Ignorable="d"
    d:DesignHeight="400" d:DesignWidth="800">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.DataContext>
            <vm:MainPageViewModel></vm:MainPageViewModel>
        </Grid.DataContext>
        <Intersoft:FieldLabel Header="Select Product : " HorizontalAlignment="Center" VerticalAlignment="Center">
            <Intersoft:UXComboBox ItemContentType="ContentAndImage" ItemsSource="{Binding Data}" DisplayMemberPath="ProductName" ImageMemberPath="ProductImage" VerticalAlignment="Center" Width="150"></Intersoft:UXComboBox>
        </Intersoft:FieldLabel>
    </Grid>

</UserControl>

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.UXComboBoxItem
                           Intersoft.Client.UI.Aqua.UXCollection.UXSearchBoxItem
                           Intersoft.Client.UI.Data.UXDataComboBoxItem

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.