【发布时间】:2014-07-02 14:14:25
【问题描述】:
Windows Phone 8 应用
在我的 MainPage.xaml 中,我有以下内容:
<Image HorizontalAlignment="Left" Height="215" VerticalAlignment="Top" Width="450" Margin="10,299,-40,0" Source="/Assets/Images/MTCOB.jpg"/>
我想要的是用户点击它,然后在 IE8 中打开一个网站。
在我的 MainPage.xmal.cs 中,我有以下内容:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using GamesWithGold.Resources;
using Microsoft.Phone.Tasks;
using System.Windows.Interop;
namespace GamesWithGold
{
public partial class MainPage : PhoneApplicationPage
{
public MainPage()
{
InitializeComponent();
}
private void Image_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
}
}
}
......
我是这方面的新手,所以非常希望有人帮助我将我的第一个应用程序推出测试版。
【问题讨论】:
-
检查这个链接msdn.microsoft.com/en-us/library/windowsphone/develop/…你可以创建一个WebBrowsertask的实例并为其分配一个URI属性
-
把它扔进HyperlinkButton
标签: c# xaml windows-phone-8