次の方法で共有


IXRListBox::GetItemContainerStyle (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE GetItemContainerStyle(
    __out IXRStyle** pItemContainerStyle
) = 0;

Parameters

  • pItemContainerStyle
    [out] Pointer to an IXRStyle pointer that, on return, 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 is described in pItemContainerStyle is applied to each container item in this list box. It provides the same property settings for a group of items in a list, such as background, foreground, border, height, width, and so on.

.NET Framework Equivalent

System.Windows.Controls.ListBox.ItemContainerStyle

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRListBox
IXRListBox::SetItemContainerStyle