AdaptiveGridView XAML Control

The AdaptiveGridView Control presents items in a evenly-spaced set of columns to fill the total available display space. It reacts to changes in the layout as well as the content so it can adapt to different form factors automatically.

If there are not enough items to fill one row, the control will stretch the items until all available space is filled. This can result in much wider items than specified. If you prefer your items to always stay close to the DesiredWidth, you can set the StretchContentForSingleRow property to false, to prevent further stretching.


<controls:AdaptiveGridView  Name="AdaptiveGridViewControl"
          ItemTemplate="{StaticResource PhotosTemplate}">

Example Image

AdaptiveGridView animation

Example Code

AdaptiveGridView Sample Page

Default Template

AdaptiveGridView XAML File is the XAML template used in the toolkit for the default styling.

Requirements (Windows 10 Device Family)

Device family Universal, 10.0.10586.0 or higher
Namespace Microsoft.Toolkit.Uwp.UI.Controls