次の方法で共有


IXRListBox::SetItemContainerStyle (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

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

Parameters

  • pValue
    [in] Pointer to an IXRStyle object that represents 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 IXRListBox, that type is usually IXRListBoxItem.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The style that you apply by calling this method will be applied to each container item in this list box.

The IXRStyle object that you pass into pValue must have its TargetType set to "ListBoxItem". By using this style object, you can set properties for a group of items in a list, such as background, foreground, border, height, width, and so on. The properties set by an IXRStyle must be available on parent classes for that particular target item, such as the settable properties in all parent classes for IXRListBoxItem.

.NET Framework Equivalent

System.Windows.Controls.ComboBox.ItemContainerStyle

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRListBox
IXRListBox::GetItemContainerStyle