<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. -->
<controls:Page
    x:Class="MUXControlsTestApp.Samples.ElementsInItemsSourcePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="http://schemas.modernwpf.com/2019"
    xmlns:local="clr-namespace:MUXControlsTestApp.Samples">

    <Grid Background="{DynamicResource SystemControlPageBackgroundAltHighBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="200" />
        </Grid.RowDefinitions>

        <StackPanel>
            <Button x:Name="goBackButton">Back</Button>
        </StackPanel>

        <controls:ItemsRepeaterScrollHost
            x:Name="tracker"
            Grid.Row="1">
            <ScrollViewer x:Name="scrollViewer">
                <controls:ItemsRepeater>
                    <controls:ItemsRepeater.ItemsSource>
                        <local:UICollection>
                            <Button>1</Button>
                            <Button>2</Button>
                            <Button>3</Button>
                            <Button>4</Button>
                            <Button>5</Button>
                            <Button>6</Button>
                            <Button>7</Button>
                            <Button>8</Button>
                            <Button>9</Button>
                            <Button>10</Button>
                            <Button>11</Button>
                            <Button>12</Button>
                            <Button>13</Button>
                            <Button>14</Button>
                            <Button>15</Button>
                            <Button>16</Button>
                            <Button>17</Button>
                            <Button>18</Button>
                            <Button>19</Button>
                            <Button>20</Button>
                            <Button>21</Button>
                            <Button>22</Button>
                            <Button>23</Button>
                            <Button>24</Button>
                            <Button>25</Button>
                            <Button>26</Button>
                            <Button>27</Button>
                            <Button>28</Button>
                            <Button>29</Button>
                            <Button>30</Button>
                        </local:UICollection>
                    </controls:ItemsRepeater.ItemsSource>
                </controls:ItemsRepeater>
            </ScrollViewer>
        </controls:ItemsRepeaterScrollHost>
    </Grid>
</controls:Page>
