IXRItemsPresenter (Compact 2013)
3/28/2014
This class represents how items are positioned inside a control, usually an IXRItemsControl.
Syntax
class IXRItemsPresenter : public IXRFrameworkElement
Inheritance Hierarchy
IXRItemsPresenter
Methods
This class provides no new methods. All its methods are inherited from IXRFrameworkElement.
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 item presenter can be used to specify positioning information, such as how items are aligned horizontally and vertically.
You can access an IXRItemsPresenter object in the control template of a control. It specifies the position in the control's visual tree at which the IXRItemsPanel is added. The IXRItemsPanel object specifies the item panel that is used to determine the layout of items inside the control.
This object is defined in the source XAML for your application.
When you create a class instance, use an IXRItemsPresenterPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.
You can define an item presenter 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 ItemsPresenter Class on MSDN.
You can access this object in the visual tree obtaining an IXRItemsControl pointer on a control, and calling the inherited method IXRControl::GetTemplate to obtain an IXRControlTemplate pointer to its control template. This pointer provides access to the XAML element sub-tree for that control template.
.NET Framework Equivalent
System.Windows.Controls.ItemsPresenter
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |