Windows.UI.Xaml.Controls.Primitives.GridViewItemPresenter

June 22, 2022 · View on GitHub

-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