Share via


IXRComboBoxItem (Compact 2013)

3/28/2014

This class represents a selectable item that is contained in a combo-box control.

Syntax

class IXRComboBoxItem : public IXRListBoxItem

Inheritance Hierarchy

IXRDependencyObject

    IXRUIElement

        IXRFrameworkElement

            IXRControl

                IXRContentControl

                    IXRListBoxItem

                        IXRComboBoxItem

Methods

This class provides no new methods. All its methods are inherited from IXRListBoxItem.

Thread Safety

Members of this class are thread-safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

An IXRComboBox object contains a collection of IXRComboBoxItems. In the graphical window, these items are displayed in the pop-up list that is a part of the combo-box control.

IXRComboBoxItem inherits from IXRContentControl. You can retrieve the content of this combo-box item by calling IXRContentControl::GetContent, and you can set the content of this combo-box item by calling IXRContentControl::SetContent.

An IXRComboBoxItem object should be a part of an item collection for a combo box. This collection is represented by an IXRItemCollection object. For more information about how to add a combo-box item to this collection, see IXRComboBox.

When you create a class instance, use an IXRComboBoxItemPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

You can also define a combo box item in Microsoft Silverlight 3 XAML. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the ComboBox Class on MSDN.

.NET Framework Equivalent

System.Windows.Controls.ComboBoxItem

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for UI Element Management