gpt4 book ai didi

windows-phone-7 - 在 wp7 中将图像设置为全景页面的全景标题

转载 作者:行者123 更新时间:2023-12-04 07:00:55 25 4
gpt4 key购买 nike

我需要为全景页面的标题设置图像,我们可以这样做吗?实际上,我已经使用 TitleTemplate 完成了此操作,但它不起作用..你能指导我如何将图像设置为全景页面标题吗。

代码是

<controls:Panorama Background="{Binding PanoramaBackground}">
<controls:Panorama.TitleTemplate>
<DataTemplate>
<StackPanel>
<Image x:Name="HeaderImage" Source="/Resources/header_logo.png" />
</StackPanel>
</DataTemplate>
</controls:Panorama.TitleTemplate>
</controls:Panorama>

但是这是行不通的..

感谢和问候,

正餐

最佳答案

我在这个论坛之外找到了我的问题的答案:

标题位置的所有全景 View 绘制大图的正确方法是这样的:

        <controls:Panorama.Title>
<StackPanel Orientation="Vertical" Margin="0,80,0,0">
<Image x:Name="icon" Source="/Resources/Drawables/header_landscape.png" Height="163" Width="1920"/>
<!--<TextBlock Text="my application" FontStyle="Italic" FontSize="40" VerticalAlignment="Center" Margin="0,-40,0,0" />-->
</StackPanel>
</controls:Panorama.Title>

关于windows-phone-7 - 在 wp7 中将图像设置为全景页面的全景标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5592003/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com