IXRComboBox::SetItemContainerStyle (Compact 2013)

3/28/2014

This method sets the style that is used when XAML for Windows Embedded renders the item containers.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetItemContainerStyle(
    IXRStyle *pValue
) = 0;

Parameters

  • pValue
    [in] Pointer to an IXRStyle object that describes a single style for all item container types. That style would typically have multiple IXRSetter objects that each set a visual property on the item container type that is being targeted. For IXRComboBox, that type is usually IXRComboBoxItem.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

You can use this method to provide a custom appearance for combo-box items that are listed in the pop-up part of the combo box. This style does not apply to the selected item displayed in the text box.

The style that you provide in pValue is applied to each container item in this combo box. It provides the same property settings for a group of items in the pop-up list, such as background, foreground, border, height, width, and so on.

.NET Framework Equivalent

System.Windows.Controls.ComboBox.ItemContainerStyle

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRComboBox