Silverlight非托管代码的初始化进度条方法
<script type="text/JavaScript">
////错误处理函数
function onSilverlightError(sender,args) ...
//下载进度函数
function onSourceDownloadProgressChanged(sender,eventArgs) {
sender.findname("progresstext").Text = Math.round(eventArgs.progress * 100) + "%";
sender.findname("progresstext2").Text = Math.round(eventArgs.progress * 100) + "%";
sender.findname("progressbarScale").ScaleX = eventArgs.progress;
}
</script>
<body>
<div ID="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" wIDth="100%" height="100%">
<param name="splashscreensource" value="SplashScreen.xaml"/>
<param name="onSourceDownloadProgressChanged" value="onSourceDownloadProgressChanged" />
<param name="source" value="ClIEntBin/SlApp_System.xap"/>
<param name="onerror" value="onSilverlightError" />
<param name="background" value="Blue" />
<param name="minRuntimeVersion" value="3.0.40818.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40818.0" >
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="获取 Microsoft Silverlight" />
</a>
</object><iframe ID="_sl_historyFrame" style='visibility:hIDden;height:0;wIDth:0;border:0px'></iframe></div>
</body>
SplashScreen.xaml
总结以上是内存溢出为你收集整理的SilverLight非托管代码的初始化进度条方法全部内容,希望文章能够帮你解决SilverLight非托管代码的初始化进度条方法所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)