Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.54 KB

gridviewitempresenter.md

File metadata and controls

29 lines (20 loc) · 1.54 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Controls.Primitives.GridViewItemPresenter
winrt class

Microsoft.UI.Xaml.Controls.Primitives.GridViewItemPresenter

-description

Represents the visual elements of a GridViewItem. When developing for Windows 10, use ListViewItemPresenter instead of GridViewItemPresenter in your item container style, both for ListView and for GridView. If you edit a copy of the default item container styles then you will get the correct type.

-xaml-syntax

<GridViewItemPresenter .../>

-remarks

The XAML usage shown is intended to be part of a XAML template or style for a GridView control (or derived type) and its items. For more info, see GridView.

For a custom GridViewItemPresenter, use the name of your class as the string within the object element syntax for XAML. You'll probably have to map an xmlns definition with a prefix to refer to your class definition. For more info, see XAML namespaces and namespace mapping.

-examples

-see-also

ContentPresenter