This site uses cookies to deliver our services. By using this site, you acknowledge that you have read and understand our Cookie and Privacy policy. Your use of Kontext website is subject to this policy. Allow Cookies and Dismiss

My First Silverlight Applet: Silverlight + xml 图片轮换展示效果

306 views 2 comments last modified about 9 years ago Raymond Tang

这是自己的第一个Silverlight程序,没有专门的学习过Silverlight,界面效果不是很好(很丑),全是凭自己的感觉以及对xml和winform的了解转移到Silverlight上来的,效果参考了网上经常可以看到的Flash+Xml 图片或者广告轮番展示效果,不过我这个功能暂时不是很强大,仅仅是实现了最初的功能,以后再慢慢修改,效果参看 www.polarlight.net/Default.aspx

这个是config.xml中的配置
<ImageTransitionConfig>

<Items>
<ImageTransitionConfigItem ID="0" Color="255,255,255,255" Title="恭贺新禧,虎年大吉" Description="恭祝团队所有成员虎年大吉大利,身体健康,阖家欢乐!" ImageUrl="images/happy2010.jpg" UriKind="Relative"/>
<ImageTransitionConfigItem ID="1" Color="255,26,147,60" Title="团队网站任务模块上线" Description="在任务管理模块可查看自己的任务,请团队成员即时关注!" ImageUrl="images/teamtasks.jpg" UriKind="Relative"/>
<ImageTransitionConfigItem ID="2" Color="White" Title="XPlatform团队成员招募" Description="详情请资讯QQ54718****" ImageUrl="images/recruitment.jpg" UriKind="Relative"/>
<ImageTransitionConfigItem ID="3" Color="255,255,255,255" Title="我们团队成立了!" Description=" " ImageUrl="images/team.jpg" UriKind="Relative"/>
</Items>
</ImageTransitionConfig>

所有配置参数通过InitParams参数传入
<object data="data:application/x-silverlight-2,"  type="application/x-silverlight-2" width="100%" height="240px">
<param name="source" value="ClientBin/PolarLight.Silverlight.ImageTransition.xap"/>
<param name="onerror" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="2.0.31005.0" />
<param name="autoUpgrade" value="true" />
<param name="InitParams" value="type=1,configpath=config.xml,configcontent=''" />
<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="获取 Microsoft Silverlight" style="border-style: none"/>
</a>
</object>
效果如下:

Related pages

Issue - Unable to get property 'apply' of undefined or null reference occurred in Angular 4.*, VS2017 15.3, ASP.NET Core 2.0

7316 views   10 comments last modified about 2 years ago

Issue Context After installed Visual Studio 2017 15.3 preview and .net core 2.0 preview SDK, I upgraded one of my existing asp.net core project to 2.0. The project was created using ‘dotnet new angular’ SPA template.&nbsp; I also upgraded all the client app packages to the latest. For exa...

View detail

[Link] Build SPA on ASP.NET Core with JavaScript Services

498 views   0 comments last modified about 2 years ago

Great introduction about JavaScriptServices ( JavaScriptServices GitHub repository ): Microsoft.AspNetCore.SpaTemplates plugs into dotnet new , providing project templates for Angular 2, Aurelia, Knockout...

View detail

input submit input text css的写法

133 views   0 comments last modified about 11 years ago

本文介绍如何修改input控件submit以及text不同类型的样式。

View detail

JavaScript版本的杨辉三角

305 views   0 comments last modified about 9 years ago

前几天帮一个学弟写的,JavaScript版本的杨辉三角,其实和其他C、Java等等版本的都差不多。代码如下:

View detail

在网页中通过userAgent获取手机获取手机操作系统类型

1438 views   0 comments last modified about 8 years ago

本文介绍如果在JavaScript中根据手机浏览器提供的信息userAgent判断手机操作系统的类型,并执行相应的操作。

View detail

在.Net中使用msxsl:script脚本块扩展XSLT的具体实践与应用

368 views   0 comments last modified about 9 years ago

一概述XSLT可以用于将XML格式的数据转换为其它格式,在数据和展示分开以及数据相互转换中可以得到广泛的应用,比较典型的是以前的动网论坛模板系统以及动易的标签系统。掌握好XSLT可以灵活的处理XML,同时运用在Web应用程序中也非常的方便,不过缺点是使用者需要掌握大量的XPath、XSLT、XML等相关知识。

View detail

Add comment

Please login first to add comments.  Log in New user?  Register

Comments (1)

WM re: My First Silverlight Applet: Silverlight + xml 图片轮换展示效果

write my*** about 7 years ago

I hope that you have an English version for this post so your other readers will understand what is this post all about.