从手机应用程序链接到自己的网站 [英] Link from Phone App to own website

查看:71
本文介绍了从手机应用程序链接到自己的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果用户愿意,用户应从应用程序访问我自己的网站,当然,然后再回到离开站点的应用程序.

准备的是XAML中的buttonX和事件函数buttonX_Click().我已经尝试过WebBrowserTask()类,但是我很难对其进行初始化,设置正确的属性和调用.

使用Microsoft.Phone.Tasks;

var wb = new WebBrowserTask();

buttonX.Content =访问我的网站";

wb.Uri =" http://mysite.xxxxx.xxx ";   ->无法将字符串转换为Uri!

wb.Show();

看似简单,但我不知道.如何在Windows Phone上正确显示?

 

解决方案

wb.Uri = new Uri(" http://mysite.xxxx.xxx ",UriKind.Absolute);


The user shall visit my own website from the app if he wants and of course go back again to the app leaving the site.

Prepared is a buttonX in XAML and an event function buttonX_Click(). I have tried class WebBrowserTask(), but I struggle initializing it, set the correct properties and calls. 

using Microsoft.Phone.Tasks;

var wb = new WebBrowserTask();

buttonX.Content ="visit my website";

wb.Uri = "http://mysite.xxxxx.xxx";   --> cannot convert string to Uri!

wb.Show();

Seems simple, but I don´t know. How to do it correct for Windows Phone?

 

解决方案

wb.Uri = new Uri("http://mysite.xxxx.xxx", UriKind.Absolute);


这篇关于从手机应用程序链接到自己的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆