Windows Phone 8.1 Hub

network | | 访问(58)
<Hub>
    <Hub.Header>
        <StackPanel Orientation="Horizontal">
            <Image Source="Assets/StoreLogo.scale-100.png" Height="100"></Image>
            <TextBlock Text="我的应用程序"></TextBlock>
        </StackPanel>
    </Hub.Header>
    <Hub.Background>
        <ImageBrush ImageSource="PanoramaBackground.png"/>
    </Hub.Background>
    <HubSection Header="first item">
        <HubSection.ContentTemplate>
            <DataTemplate>
                <StackPanel>
                    <TextBlock Text="第一个 item" FontSize="50"/>
                    <TextBlock Text="这是第一个 item!" FontSize="50"/>
                </StackPanel>
            </DataTemplate>
        </HubSection.ContentTemplate>
    </HubSection>
    <HubSection Header="second item">
        <HubSection.ContentTemplate>
            <DataTemplate>
                <StackPanel>
                    <TextBlock Text="第二个 item" FontSize="50"/>
                    <TextBlock Text="这是第二个 item!" FontSize="50"/>
                </StackPanel>
            </DataTemplate>
        </HubSection.ContentTemplate>
    </HubSection>
    <HubSection  Header="third item">
        <HubSection.ContentTemplate>
            <DataTemplate>
                <StackPanel>
                    <TextBlock Text="第三个 item" FontSize="50"/>
                    <TextBlock Text="这是第三个 item!" FontSize="50"/>
                </StackPanel>
            </DataTemplate>
        </HubSection.ContentTemplate>
    </HubSection>
</Hub>