Add the QuickReturnHeader class and style to your project. Then define a regular ListView or GridView and add a QuickReturnHeader to its header. Make sure to tell the header which container it belongs to using the TargetListViewBase property:
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="ms-appx:///QuickReturnHeader.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Page.Resources>
<ListView x:Name="MyList">
<ListView.Header>
<local:QuickReturnHeader TargetListViewBase="{x:Bind MyList}">
<TextBlock Text="Header" />
</local:QuickReturnHeader>
</ListView.Header>
</ListView>