Xaml 其他元件内部的轮毂对齐

Xaml 其他元件内部的轮毂对齐,xaml,windows-10-universal,Xaml,Windows 10 Universal,我如何制作轮毂以填充剩余空间?不多不少。如果Listview较长,则集线器在屏幕下方结束 <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <controls:PageHeader Content="

我如何制作轮毂以填充剩余空间?不多不少。如果Listview较长,则集线器在屏幕下方结束

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>

    <controls:PageHeader Content="Main Page">
        <controls:PageHeader.SecondaryCommands>
            …
        </controls:PageHeader.SecondaryCommands>
           </controls:PageHeader>
    <Hub>
        <HubSection>
            <DataTemplate>
                <ListView>
                    …
                </ListView>
            </DataTemplate>
        </HubSection>
        <HubSection>
            …
        <HubSection>
    </Hub>
</Grid>

…
…
…
试试这个:

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>

    <StackPanel Grid.Row="0">
        <controls:PageHeader Content="Main Page">
            <controls:PageHeader.SecondaryCommands>
             …
            </controls:PageHeader.SecondaryCommands>
        </controls:PageHeader>
    </StackPanel>

    <Grid Grid.Row="1">
       <Hub>
           <HubSection>
               <DataTemplate>
                   <ListView>
                       …
                   </ListView>
               </DataTemplate>
           </HubSection>
           <HubSection>
            …
           <HubSection>
        </Hub>
    </Grid>
</Grid>

…
…
…