<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>先有法而后有信，信而后有礼，礼后义，义后仁，德道皆不失也 &#187; silverlight</title>
	<atom:link href="http://blog.ywxyn.com/index.php/archives/category/dao/software/net/silverlight/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.ywxyn.com</link>
	<description></description>
	<lastBuildDate>Thu, 29 Dec 2011 05:23:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>结合Silverlight MEF开发组件式WebGIS平台</title>
		<link>http://blog.ywxyn.com/index.php/archives/612</link>
		<comments>http://blog.ywxyn.com/index.php/archives/612#comments</comments>
		<pubDate>Mon, 28 Jun 2010 08:44:12 +0000</pubDate>
		<dc:creator>寻道者</dc:creator>
				<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://blog.ywxyn.com/?p=612</guid>
		<description><![CDATA[公司的WebGIS平台采用Silverlight技术实现，根据Silverlight技术目前的发展情况，要做到团队成员之间组件化配置开发，是有一定复杂度的。既然决定了使用Silverlight技术开发WebGIS平台，那么就只能在Silverlight技术领域寻找解决方案。 第一个映入眼帘的就是MEF，地址为http://mef.codeplex.com/，在下载了示例程序并运行之后，发现其思路极其符合我们要求的：团队中只有一个Silverlight地图框架，其它的功能都是xap包，能够加载并运行于Silverlight地图框架之上，并获得地图句柄，进行地图的相关操作。示例程序中，通过Import和Export机制，解决了不同xap包之间传递不同对象的技术难题，一下子将我们预期完成时间缩短了非常多。一切都在顺利的进行着，直到组件xap需要通过地图控件句柄操作地图控件的时候，问题来了：组件获取不到地图控件句柄。在解决了几天仍然没方法的时候，另一个解决方案出现了：Prism，地址为http://compositewpf.codeplex.com/。 Prism在国内应用情况要比MEF好很多，有很多中文技术blog专门介绍了Prism，其中有许多写的非常好，可以去google。此方案实在是太强大，有兴趣的可以看中文介绍。我在了解几天之后，无奈的将它放弃，不是因为它不好，实在是用不起来。经过和MEF的对比，决定还是在MEF上下功夫，来解决当下遇到的惟一技术问题。 说来也巧，因为开发组件式Silverlight，一定要继承一个自定义类，此自定义类里面写着一些公共的方法，包括获取当前用户信息、部门信息等，然后此类继承UserControl类。最初的想法是通过框架中Export地图控件，在组件中Import地图控件，行不通之后，就仿照权限这一块，将地图控件作为一个属性加入到了自定义的类中，每个继承此类的Silverlight用户控件，自然会访问到地图控件属性，问题一下就解决了。 实现方法： 1、下载Mef_Preview_9 2、新建一个Silverlight应用程序，一个Silverlight类库。Silverlight类库中的程序就把Mef_Preview_9中示例程序Hello的Contracts拿过来就行。Silverlight应用程序引用Contracts和System.ComponentModel.Composition.dll两个dll。Silverlight应用程序中，MainPage.xaml.cs内容如下 MainPage.xaml内容如下： App.xaml.cs中也要做一些修改： 以上就是Silverlight应用程序的代码。 3、再新建一个Silverlight应用程序，作为组件，可以加载并运行于框架Silverlight之上。这里惟一要注意就是要继承自定义类，不能继承UserControl，否则得不到地图控件句柄。 至此，一个基于Silverlight的WebGIS就OK了。]]></description>
		<wfw:commentRss>http://blog.ywxyn.com/index.php/archives/612/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>js与silverlight之间的交互</title>
		<link>http://blog.ywxyn.com/index.php/archives/585</link>
		<comments>http://blog.ywxyn.com/index.php/archives/585#comments</comments>
		<pubDate>Wed, 09 Jun 2010 03:38:44 +0000</pubDate>
		<dc:creator>寻道者</dc:creator>
				<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://blog.ywxyn.com/?p=585</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;使用js操作silverlight中的方法并获取返回的结果，这种方式网上比较多的，但通过操作silverlight的时候，调用js方法，这种方式操作的介绍就比较少了，下面我结合自己在实际开发gis业务中，框选了地图中的某个区域，将这个区域的信息反馈到html端，再使用脚本进行操作的例子介绍一下（进行操作是alert，同理，只要html端得到了silverlight的操作句柄和返回结果就可以进行任意的操作了) 大部分思想是参考了：SilverLight学习笔记&#8211;Silverligh之在Javascript中捕获和处理Silverlight控件事件 1、定义一个事件类MapDrawRectangleEvent，该类及其成员要可脚本化访问即加上[ScriptableType]和[ScriptableMember]注解，如下： 2、将该类在MainPage.xaml.cs文件中进行注册 3、实现在silverlight地图中框选的方法即this.Drawing()中的代码，本例的silverlight使用的是ESRI的silverlight地图，实现的功能是用鼠标在地图上画一个矩形，当矩形画完时，该矩形范围内的信息被读取出来，赋值到Message属性中，并激活了上一步定义的事件： 4、在html端，编写js脚本函数，并将函数名称作为句柄赋给第1步定义的事件，该事件一定要在silverlight的onLoad事件执行之后，页面得到了silverlight对象之后进行绑定，否则silverlight对象因为要加载地图数据，还没显示出来，绑定事件的代码先执行就挂了，代码如下： 注意onLoad这段要自己加上 至此，在silverlight地图上框选后，就能执行脚本的事件了。]]></description>
		<wfw:commentRss>http://blog.ywxyn.com/index.php/archives/585/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight：从 JavaScript 调用托管代码</title>
		<link>http://blog.ywxyn.com/index.php/archives/564</link>
		<comments>http://blog.ywxyn.com/index.php/archives/564#comments</comments>
		<pubDate>Wed, 19 May 2010 03:24:58 +0000</pubDate>
		<dc:creator>寻道者</dc:creator>
				<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://blog.ywxyn.com/?p=564</guid>
		<description><![CDATA[主要是针对msdn中的一篇文章进行代码实现的时候遇到的问题处理： 演练：从 JavaScript 调用托管代码 App.xaml写成这样，代码不完整，只贴出了需要修改的地方。 HBTestPage.aspx页面 注意：以上html代码中，最重要的就是slCtl = sender.getHost();这行脚本，如果写成slCtl = sender.get_element();就不会显示了]]></description>
		<wfw:commentRss>http://blog.ywxyn.com/index.php/archives/564/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>译Extreme ASP.NET:Encapsulate Silverlight with ASP.NET Controls</title>
		<link>http://blog.ywxyn.com/index.php/archives/553</link>
		<comments>http://blog.ywxyn.com/index.php/archives/553#comments</comments>
		<pubDate>Sat, 15 May 2010 14:53:18 +0000</pubDate>
		<dc:creator>寻道者</dc:creator>
				<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://blog.ywxyn.com/?p=553</guid>
		<description><![CDATA[第一次翻译msdn中的文章，也不知道翻译完后能不能读懂，试一试吧。 原文的地址：Extreme ASP.NET:Encapsulate Silverlight with ASP.NET Controls作者：Fritz Onion 中文名称：极限ASP.NET:将Silverlight封装成ASP.NET控件 这是微软网站上翻译的：使用 ASP.NET 控件封装 Silverlight 本文中的代码下载地址： ExtremeASPNET2008_01.exe，在线看代码地址：Browse the Code Online 本文分以下部分： 1、使用Silverlight 2、构建一个自定义Silverlight控件 3、ASP.NET AJAX与IScriptControl 4、The asp:Xaml and asp:Media Controls 因为有很多种方式可以将Silverlight加入到应用中,导致有许多ASP.NET开发人员都感觉到困惑。 除了使整个页面作为一个Silverlight控件，还有其它的方式，你还可以将你的网页作为Silverlight的一部分，以及整合丰富的UI元素，只要保持基本的应用结构相同，都能带来很多好处。 后一种方法有时被称为“adding islands of richness”到你的网页。这些islands通过许多可脚本化的方法和事件作为&#8221;possible bridges&#8221;与Silverlight进行联系。 在本月的专栏中，我要去探索构建自定义服务器控件封装Silverlight内容的技术。 把Silverlight包装成一个自定义的ASP.NET控件，使之成为有吸引力的技术。 It makes integrating Silverlight content as easy as using any other server-side control, which greatly increases the chances [...]]]></description>
		<wfw:commentRss>http://blog.ywxyn.com/index.php/archives/553/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>silverlight应用程序中未处理的错误代码：2104 类别：InitializeError 消息：无法下载 iis上部署Silverlight</title>
		<link>http://blog.ywxyn.com/index.php/archives/204</link>
		<comments>http://blog.ywxyn.com/index.php/archives/204#comments</comments>
		<pubDate>Tue, 29 Sep 2009 08:44:43 +0000</pubDate>
		<dc:creator>寻道者</dc:creator>
				<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://blog.ywxyn.com/?p=204</guid>
		<description><![CDATA[错误代码:2104 InitializeError ]]></description>
		<wfw:commentRss>http://blog.ywxyn.com/index.php/archives/204/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight动画实现一个控件的先纵向后横向的缩放动作</title>
		<link>http://blog.ywxyn.com/index.php/archives/166</link>
		<comments>http://blog.ywxyn.com/index.php/archives/166#comments</comments>
		<pubDate>Tue, 22 Sep 2009 06:41:11 +0000</pubDate>
		<dc:creator>寻道者</dc:creator>
				<category><![CDATA[silverlight]]></category>
		<category><![CDATA[动画]]></category>
		<category><![CDATA[缩放]]></category>

		<guid isPermaLink="false">http://blog.ywxyn.com/?p=166</guid>
		<description><![CDATA[Silverlight动画实现一个控件的先纵向后横向的缩放动作]]></description>
		<wfw:commentRss>http://blog.ywxyn.com/index.php/archives/166/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight中ListBox控件的鼠标滚动事件</title>
		<link>http://blog.ywxyn.com/index.php/archives/136</link>
		<comments>http://blog.ywxyn.com/index.php/archives/136#comments</comments>
		<pubDate>Thu, 17 Sep 2009 10:28:11 +0000</pubDate>
		<dc:creator>寻道者</dc:creator>
				<category><![CDATA[silverlight]]></category>
		<category><![CDATA[ListBox控件]]></category>
		<category><![CDATA[鼠标滚动事件]]></category>

		<guid isPermaLink="false">http://blog.ywxyn.com/?p=136</guid>
		<description><![CDATA[Silverlight中ListBox控件的鼠标滚动事件]]></description>
		<wfw:commentRss>http://blog.ywxyn.com/index.php/archives/136/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>silverlight使用ObservableCollection进行集合数据绑定</title>
		<link>http://blog.ywxyn.com/index.php/archives/130</link>
		<comments>http://blog.ywxyn.com/index.php/archives/130#comments</comments>
		<pubDate>Thu, 17 Sep 2009 10:24:42 +0000</pubDate>
		<dc:creator>寻道者</dc:creator>
				<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://blog.ywxyn.com/?p=130</guid>
		<description><![CDATA[silverlight使用ObservableCollection进行数据绑定]]></description>
		<wfw:commentRss>http://blog.ywxyn.com/index.php/archives/130/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>silverlight用鼠标移动控件并将控件移动到ListBox容器中</title>
		<link>http://blog.ywxyn.com/index.php/archives/111</link>
		<comments>http://blog.ywxyn.com/index.php/archives/111#comments</comments>
		<pubDate>Thu, 17 Sep 2009 09:53:49 +0000</pubDate>
		<dc:creator>寻道者</dc:creator>
				<category><![CDATA[silverlight]]></category>
		<category><![CDATA[定位]]></category>
		<category><![CDATA[容器]]></category>
		<category><![CDATA[移动控件]]></category>
		<category><![CDATA[鼠标事件]]></category>

		<guid isPermaLink="false">http://blog.ywxyn.com/?p=111</guid>
		<description><![CDATA[silverlight 移动控件 鼠标事件 定位]]></description>
		<wfw:commentRss>http://blog.ywxyn.com/index.php/archives/111/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>silverlight修改Image控件的source属性值</title>
		<link>http://blog.ywxyn.com/index.php/archives/104</link>
		<comments>http://blog.ywxyn.com/index.php/archives/104#comments</comments>
		<pubDate>Thu, 17 Sep 2009 08:36:29 +0000</pubDate>
		<dc:creator>寻道者</dc:creator>
				<category><![CDATA[silverlight]]></category>
		<category><![CDATA[Image控件]]></category>
		<category><![CDATA[source属性值]]></category>

		<guid isPermaLink="false">http://blog.ywxyn.com/?p=104</guid>
		<description><![CDATA[silverlight  Image控件 source属性值]]></description>
		<wfw:commentRss>http://blog.ywxyn.com/index.php/archives/104/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

