【问题标题】:How to make images as hyperlink in windows phone 7?如何在 windows phone 7 中将图像作为超链接?
【发布时间】:2012-11-28 15:52:45
【问题描述】:

如何在windows phone中制作超链接图片?

【问题讨论】:

  • 不够好,不能投票,但也不错,不能投票......看看他,他肯定是个新人,所以有这样的问题很好

标签: .net windows windows-phone-7


【解决方案1】:

您有几个选项,但最喜欢的似乎列在 this question 中,这表明使用类似于以下 XAML 的内容

<HyperlinkButton Height="310" HorizontalAlignment="Left" Margin="206,202,0,0" Name="hyperlinkButton1" VerticalAlignment="Top" Width="200" >
    <HyperlinkButton.Background>
        <ImageBrush ImageSource="SplashScreenImage.jpg"/>
    </HyperlinkButton.Background>
</HyperlinkButton>

【讨论】:

    【解决方案2】:

    上面的答案是正确的,但我走的是另一条路。

    添加图像并在 xaml 中或通过实际访问它的属性来设置点击事件以导航到所需的页面

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-01
      • 1970-01-01
      • 2012-08-18
      相关资源
      最近更新 更多