一些简单的tips

本文介绍了如何使用Silverlight.js文件来辅助通过JavaScript添加Silverlight应用程序到网页中,并提供了调试Silverlight应用的方法。同时,文章还涉及了播放列表添加、退出应用程序的不同方式等内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. Add playlist address to player

Player.Playlist.Add(new PlaylistItem { MediaSource = new Uri("http://smf.vertigo.com/videos/wildlife.wmv") });

 

2. Silverlight.js file   from http://www.itscodingtime.com/post/The-Silverlightjs-file.aspx

Silverlight.js is a JavaScript helper file used when adding a Silverlight application to a web page via JavaScript. Itdefines a number of methods to help with this, most importantlycreateObject and createObjectEx. Other notable functions and event handlers include:

The Silverlight.js file is installed along with the Silverlight 2 SDK (which is part of theSilverlight Tools for Visual Studio 2008 SP1 install). By default, you will find the Silverlight.js file at "C:/Program Files/Microsoft SDKs/Silverlight/v2.0/Tools".

 

3. Debug tool

using System.Diagnostics;

Debug.WriteLine("Debug Information-Product Starting ");  

 

4. ipconfig flushdns  http://hi.baidu.com/%BE%A9%B3%C7%E9%D9%D7%D3/blog/item/f0404d860b227027c75cc351.html

 

5. cant find reference go to project property/application/change .Net Framework Client Profile to .Net Framework

 

6. Application.Exit()   exit from winform

Enviroment.Exit(0)  exit from both wpf and winform

 

7. Regsvr32 Dos 注册

 

8. 显示console window: System.Console.ReadLine();

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值