当前位置:IT168首页 > 技术开发 > 概述
[收藏此页] [打印] [推荐] [评论]

如何在silverlihgt中使用右键

责任编辑:nancy作者:ITPUB论坛   2008-07-08   
【内容导航】
文本Tag: 微软 sql

【IT168技术文档】

  添加一个<TextBlock>到Page.xaml中
<UserControl x:Class="rightClick.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300"> <Grid x:Name="LayoutRoot" Background="White"> <TextBlock x:Name="MyField">Right click please.</TextBlock> </Grid> </UserControl>
  在页面中设置silverlight的参数Windowless="true"
<asp:Silverlight ID="Silverlight1" runat="server" Height="480px" MinimumVersion="2.0.30523" Source="~/ClientBin/rightClick.xap" Windowless="true" Width="640px" /> <object data="data:application/x-silverlight," type="application/x-silverlight-2-b2" width="100%" height="100%"> <param name="source" value="ClientBin/rightClick.xap"/> <param name="onerror" value="onSilverlightError" /> <param name="background" value="white" /> <param name="Windowless" value="true" /> <a href="http://go.microsoft.com/fwlink/?LinkID=115261" style="text-decoration: none;"> <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/> </a> </object>
上一页
1
2下一页
收藏到: 添加到“百度搜藏”添加到“QQ书签”添加到“Google书签”添加到“Yahoo收藏”添加到“和讯网摘”
【内容导航】
本文欢迎转载,转载请注明:转载自IT168 [ http://www.it168.com/ ]
本文链接:http://tech.it168.com/d/2008-07-08/200807081242984.shtml
技术开发相关文章  
  • 暂无
友情推介