Windows Phone 8全景应用程序平铺标题

时间:2014-05-14 00:18:15

标签: image windows-phone-8 title tile

我正在尝试在平铺图像标题中写入panaroma应用程序。 我在.xaml页面中看不到下面的代码;

<image Title="blabla" ...>

这是我的代码;

<phone:PanoramaItem Header="Kişisel Bilgiler" Orientation="Horizontal">
            <!--Double wide Panorama with large image placeholders-->
            <Grid>
                <StackPanel Margin="0,4,16,0" Orientation="Vertical" VerticalAlignment="Top">
                    <StackPanel HorizontalAlignment="Left" Orientation="Horizontal" Margin="0,12,0,0">
                        <toolkit:WrapPanel>

                            <Border BorderBrush="AliceBlue" BorderThickness="1" Margin="12,0,0,0">

                               <Image Width="173" Height="173" Source=".\Assets\cinsiyet.png" Tag="img_deneme" Margin="0,0,0,0" x:Name="img_cins" MouseEnter="Image_MouseEnter" />

                            </Border>
                        </toolkit:WrapPanel>
                    </StackPanel>
                 </StackPanel>
             </Grid>
</phone:PanoramaItem>

Output is here

但我想要like this

感谢提前。 (抱歉,我的语言)

1 个答案:

答案 0 :(得分:1)

Image控件没有任何属性可以显示类似于Tile标题的文本。您需要添加其他控件来显示标题,例如使用TextBlock

<toolkit:WrapPanel>
    <Grid>
        <Border BorderBrush="AliceBlue" BorderThickness="1" Margin="12,0,0,0">
           <Image Width="173" Height="173" Source=".\Assets\cinsiyet.png" Tag="img_deneme" Margin="0,0,0,0" x:Name="img_cins" MouseEnter="Image_MouseEnter" />
        </Border>
        <TextBlock Margin="0,150,0,0" Text="Tile Title" Foreground="White"/>
    </Grid>
</toolkit:WrapPanel>

您可能还想尝试HubTile控制作为替代方案。