silverlight – 电子邮件超链接按钮

silverlight – 电子邮件超链接按钮,第1张

概述我试图在silverlight 4中使用超链接按钮作为mailto,如下所示: <HyperlinkButton x:Name="hlbCustomerSupport" NavigateUri="mailto:[email protected]" Content="[email protected]"></HyperlinkButton> 当我在应用程序中单击它时,我得 我试图在silverlight 4中使用超链接按钮作为mailto,如下所示:

<Hyperlinkbutton x:name="hlbCustomerSupport" NavigateUri="mailto:[email protected]" Content="[email protected]"></Hyperlinkbutton>

当我在应用程序中单击它时,我得到:

Webpage error details

User Agent: Mozilla/4.0 (compatible;
MSIE 8.0; windows NT 6.1; TrIDent/4.0;
SLCC2; .NET CLR 2.0.50727; .NET CLR
3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C;
.NET4.0E) Timestamp: Wed,19 Jan 2011
14:24:29 UTC

Message: Unhandled Error in
Silverlight Application Code: 4004
category: ManagedRuntimeError
Message: System.ArgumentException:
Content for the URI cannot be loaded.
The URI may be invalID. Parameter
name: uri at
System.windows.Navigation.NavigationService.NavigateCore(Uri
uri,NavigationMode mode,Boolean
suppressJournalAdd,Boolean
isRedirect) at
System.windows.Controls.Frame.Navigate(Uri
source) at
MS.Internal.NavigationHelper.TryInternalNavigate()
at
MS.Internal.NavigationHelper.Navigate(Boolean
checkUserInitiatedAction) at
System.windows.Controls.Hyperlinkbutton.OnClick()
at
System.windows.Controls.Primitives.buttonBase.OnMouseleftbuttonUp(MousebuttonEventArgs
e) at
System.windows.Controls.Control.OnMouseleftbuttonUp(Control
ctrl,EventArgs e) at
MS.Internal.JoltHelper.FireEvent(IntPtr
unmanagedobj,IntPtr unmanagedobjArgs,
Int32 argsTypeIndex,String eventname)

我在其他地方以编程方式执行此 *** 作.我尝试了同样的方法,仍然得到错误.

解决方法 我想到了.有效的hyperlinkBut​​ton位于子窗口(远嵌套控件)中,而不在站点模板中的那个(Application对象的Child).因此,网站模板中的超链接按钮似乎必须指定Targetname =“_ blank”.不知道为什么会这样. 总结

以上是内存溢出为你收集整理的silverlight – 电子邮件超链接按钮全部内容,希望文章能够帮你解决silverlight – 电子邮件超链接按钮所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1000864.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存