RSS 2.0 Feed
2007-05 Entries
摘要:1. Ernie Booth的Reflector Silverlight Browser View Source Reflector tool for .NET Silverlight Siteshttp://blogs.msdn.com/ebooth/archive/2007/05/19/view-source-reflector-tool-for-net-silverlight-sites.aspx 允许你在Reflector下查看任何Silverlight应用的代码,无论是托管代码还是Javascript,可以极大地帮助你理解别人的Silverlight应用是怎么工作的 2. Dave Relyea的C#布局控件 Silverlight 1.1 Alpha Layout System and Controls Frameworkhttp://blogs.msdn.com/devdave/archive/2007/05/17/silverlight-1-1-alpha-layout-system-and-controls-framework.aspx Dave Relyea发表了他编写的布局控件框架项目,补充了Silverlight 1.1中现有控件框架的不足,内容包括 布局框架 LayoutControl,LayoutContainerControl控件基类 Border StackPanel Grid Label Button TextBox 示范网址:http://www.simplegeek.com/mharsh/layout/ 3. Joe Stegman的博客贴子 Some V1.0 Breaking Changeshttp://blogs.msdn.com/jstegman/archive/2007/05/21/some-v1-0-breaking-changes.aspx 提到了V1.0版本中将出现的几个非兼容性变动,包括 接连事件处理函数时不再需要“javascript:” ,他提供了一个更新过的silverlight.js 插件名称从“WPFe Plug-In”改成“Silverlight Plug-In” 动画标识现在要求TargetName和TargetProperty属性 4. Desperately Seeking Love of Sophie(绝望地渴求苏菲之爱)的博客对Silverlight Alpha以及控件样例做了系统的介绍 Basics of Silverlight Alpha Applicationhttp://vivekdalvi.wordpress.com/2007/05/15/basics-of-silverlight-alpha-application/ Using Browser Host to Resize the Page Sizehttp://vivekdalvi.wordpress.com/2007/05/16/using-browser-host-to-resize-the-page-size/ Silverlight Toolbarhttp://vivekdalvi.wordpress.com/2007/05/14/silverlight-toolbar/ Basics of Custom Control in Silverlighthttp://vivekdalvi.wordpress.com/2007/05/02/basics-of-custom-control-in-silverlight/ Using ListBoxhttp://vivekdalvi.wordpress.com/2007/05/10/using-listbox/ Fix for Button controlhttp://vivekdalvi.wordpress.com/2007/05/18/fix-for-button-control/ 相关链接也可以在下面博客上找到http://blogs.msdn.com/vivekd/default.aspx 5. Jaime Rodriguez的Snoop for Silverlight 1.0http://blogs.msdn.com/jaimer/archive/2007/05/17/early-version-of-snoop-for-silverlight-1-0.aspx 这个工具可以帮助你理解Silverlight视觉树里元素的组成结构以及元素的属性,跟踪鼠标事件导致的属性变化等。这个工具的示范网页在这里http://jaimersamples.members.winisp.net/silverlight/10/snoopsample/default.html 6. US ISV Developer Evangelism Team的移植WPF到Silverlight系列,目前发表了4个部分 Porting WPF to Silverlight 1.1 - 1st......[阅读全文]

posted @ | Feedback (18) | Filed Under [ ASP.NET/IIS WPF/SilverLight ]

摘要: Popfly的宗旨是给非专业人员提供一个软件开发工具, 根据Popfly网站, http://www.popfly.ms/Overview/ Popfly可以让大家轻松建造和共享mashups,gadgets, 网页和应用。 Popfly 由两部分组成: 1。 Popfly Creator 是一套建造网页和mashup的在线视觉化工具2。 Popfly Space 是个在线creators社区,用户可以存放和共享自己的作品,评论和修改其他用户的作品 Popfly提供了一堆预制/连接好的web服务/编程模块可为用户所用,它支持JavaScript/AJAX,Popfly还提供了与Visual Studio的集成。 Channel 9 有个采访开发团队和开发人员示范的录像http://channel9.msdn.com/showpost.aspx?postid=308460 Adam Natham提供了一个screencast录像链接,进一步展示了Popfly的功能http://go.microsoft.com/fwlink/?LinkID=91175 该项目目前还处于alpha测试阶段,还没有向大众开放。...[阅读全文]

posted @ | Feedback (13) | Filed Under [ ASP.NET/IIS WPF/SilverLight ]

摘要: 今天在MSDN博客上,有个广为传抄的 Asli Bilgin 编篡的 Silverlight resources 列表,这是小气的神的博客上相关贴子的链接: Silverlight Resourceshttp://blogs.msdn.com/ccboy/archive/2007/05/15/silverlight-resources.aspx...[阅读全文]

posted @ | Feedback (6) | Filed Under [ ASP.NET/IIS WPF/SilverLight ]

摘要:1. 如果你真对Silverlight感兴趣的话,Mike Harsh的博客不可不读。他最新的一篇博客是关于他的SilverlightPad的,它允许你在浏览器里编写和运行XAML/Javascript代码 SilverlightPad - Now with Javascript Editing and Previewhttp://blogs.msdn.com/mharsh/archive/2007/05/14/updated-silverlightpad-now-with-javascript-editing-and-preview.aspx 2. Ian Blackburn的Silverlight Mindmap 图片版本http://www.bbits.co.uk/playground/silverlight/index.html Silverlight版本http://www.bbits.co.uk/playground/silverlight/silverlight_mind_map.htm 3. .NET Security博客发表了4篇关于Silverlight安全模型的贴子 The Silverlight Security Modelhttp://blogs.msdn.com/shawnfa/archive/2007/05/09/the-silverlight-security-model.aspx Silverlight Security II: What Makes a Method Criticalhttp://blogs.msdn.com/shawnfa/archive/2007/05/10/silverlight-security-ii-what-makes-a-method-critical.aspx Silverlight Security III: Inheritancehttp://blogs.msdn.com/shawnfa/archive/2007/05/11/silverlight-security-iii-inheritance.aspx Silverlight Security Cheat Sheethttp://blogs.msdn.com/shawnfa/archive/2007/05/14/silverlight-security-cheat-sheet.aspx 最后这篇贴子里面,列出了Silverlight安全模型的要点:(其中提到的平台程序集,platform assemblies,是指那些被Microsoft的特别公钥签过名的程序集) 所有Silverlight应用都是security transparent(安全透明的),这意味着它们不能: 含有无法校验的代码 直接调用native代码 Silverlight应用可以访问平台程序集呈示的公开方法,只要它们是: Security transparent (所用类或方法没有任何安全特性(security attributes)) Security safe critical (所用方法带有SecuritySafeCriticalAttribute特性) Silverlight应用可以含有继承自下述类型的类型: 当前应用中的其他类型 由平台程序集定义的非密封的(Unsealed),而且是公开的,security transparent的类型和接口 Silverlight中的类型可以覆盖符合下述条件的虚拟方法或实现接口方法: 当前应用本身定义的方法 由平台程序集定义的,是security transparent或safe critical的方法 4. Reflector作者Lutz Roeder的三个Silverlight 1.1 Alpha样例 Monotone,Digger,Inplayhttp://www.aisto.com/roeder/silverlight/ 5. MSDN杂志六月份期的关于Silverlight的文章 中文版:SILVERLIGHT - 开始在整个网站积累更深入的体验http://msdn.microsoft.com/msdnmag/issues/07/06/Silverlight/default.aspx?loc=zh 英文版:SILVERLIGHT - Get Started Building A Deeper Experience Across The Webhttp://msdn.microsoft.com/msdnmag/issues/07/06/Silverlight/default.aspx?loc=en 6. Jason Zander 显示机器上运行的进程里CLR版本的代码 Code Sample: Is Your Process Using the Silverlight CLR? http://blogs.msdn.com/jasonz/archive/2007/05/11/code-sample-is-your-process-using-the-silverlight-clr.aspx 7. Wilco Bauwer的Silverlight 1.1异步文件上传控件样例 Silverlight ASP.NET control: AsyncFileUploadhttp://www.wilcob.com/Wilco/View.aspx?NewsID=204 8. Silverlight 1.1 文本框控件样例 Silverlight Alpha......[阅读全文]

posted @ | Feedback (8) | Filed Under [ ASP.NET/IIS WPF/SilverLight ]

摘要:在博客园上看到一个贴子 .net3.0 中跨线程访问控件 http://www.cnblogs.com/zhouyinhui/archive/2007/05/10/742134.aspx   其实有更简便的方法。。。 在编写桌面程序需要使用多线程时,如果在工作线程里需要更新界面上的东西,因为Windows编程的特性,需要将这个工作放在界面所在的线程来执行。在1.*里,需要使用控件的BeginInvoke和判断控件的InvokeRequired属性来实现。可以参考Chris Sells在MSDN上的文章, Safe, Simple Multithreading in Windows Forms, Part 2http://msdn2.microsoft.com/en-us/library/ms951109.aspx   .NET 2.0 引进了System.Threading.SynchronizationContext类,http://msdn2.microsoft.com/en-us/library/system.threading.synchronizationcontext.aspx 这个类 “Provides the basic functionality for propagating a synchronization context in various synchronization models.” 用这个类可以简化要写的编码。譬如,如果有个按钮,点击后启动一个线程,来设置主窗口的背景颜色,如果这么做 static void Button_Clicked(Object sender, RoutedEventArgs e){Thread t = new Thread(RunWorkerThread);t.Start(); } static void RunWorkerThread(Object o){SetBackground(null);} static void SetBackground(Object o){mainWindow.Background = Brushes.Red;} 会出错。但如果这么做, static void Button_Clicked(Object sender, RoutedEventArgs e){Thread t = new Thread(RunWorkerThread);t.Start(SynchronizationContext.Current);//传入当前的同步上下文} static void RunWorkerThread(Object o){//使用传入的上下文把消息发送到原来的线程上去SynchronizationContext sc = o as SynchronizationContext;sc.Post(SetBackground,null); } static void SetBackground(Object o){mainWindow.Background = Brushes.Red;} 就工作了。...[阅读全文]

posted @ | Feedback (7) | Filed Under [ .NET WPF/SilverLight ]

摘要: 根据.NET框架开发团队的主管Jason Zander的博客, Side by Side In Process CLRs Start with Silverlight http://blogs.msdn.com/jasonz/archive/2007/05/10/side-by-side-in-process-clrs-start-with-silverlight.aspx 自.NET有史以来,不同版本的CLR是不能在同一个进程里面同时运行的,即,每个进程里只允许一个版本的CLR。 但从Silverlight 1.1版本的CLR开始,这情形已经改变了,Silverlight的CLR是可以与任何一个其他版本的CLR在一个进程里面同时运行的。以后版本的CLR也将能与其他版本的CLR在一个进程里同时运行。据他的博客,一开始不允许多个版本的CLR同时运行主要是基于两个考虑,一是怕因多个CLR的GC造成的线程暂挂(thread suspension)会有冲突,二是多个CLR因为各自需要保留GC heap和装载代码,从而造成性能问题。 他有一个演示,展示了Silverlight的CLR是如何在一个WPF桌面程序里与CLR 2.0同时运行的。 下面是这个演示的连接http://download.microsoft.com/download/E/2/0/E20F14A8-C210-4416-AEDD-2C53DA6F40E8/sxsclr.wmv...[阅读全文]

posted @ | Feedback (7) | Filed Under [ ASP.NET/IIS .NET WPF/SilverLight ]

摘要: 看到几个跟北京奥运有关的连接 采访:北京奥运会使用Silverlighthttp://visitmix.com/Blogs/Joshua/beijing-olympics-visit-mix07/ 据说开心是福娃,在这个采访里,他还说话了呢: Welcome to Beijing! MIX07上的分会场讲座,是搜狐做的Citius, Altius, Fortius: Windows Presentation Foundation and the 2008 Olympic Gameshttp://sessions.visitmix.com/upperlayer.asp?event=&session=&id=1557&year=All&search=xb005&sortChoice=&stype= 但奥运会火炬接力路线图用的却是FLASHhttp://torchrelay.beijing2008.cn/en/journey/map/...[阅读全文]

posted @ | Feedback (8) | Filed Under [ 杂类 WPF/SilverLight ]

摘要:一。 在Jasper中,针对数据定义的具体情形,一般有三种方案: 1.数据库中的数据定义与应用中的对象模型有一一对应的关系,那么不用做任何改动,直接调用默认的API即可 2.如果数据库中的数据定义与应用中的对象模型结构类同,但名称有所不同,则可以通过Jasper的命名服务(NameService)来做映射 譬如,我想把我以前的例子中的User->Yonghu,Post->Tiezi, UserName->Zhanghao,我可以这么做 >>> import clr>>> import System>>> from System import *>>>>>> clr.AddReference("Microsoft.Jasper.CTP")>>> from Microsoft.Jasper import * 要使用NameService,需要引进这个程序集: >>> clr.AddReference("System.Data.Entity.Design.CTP")>>> from System.Data.Entity.Design import * 生成一个命名服务对象,在其中的PropertyNameMap和ClassNameMap添加映射,如果需要的话,还可以添加成员变量,方法名,以及参数名的映射 >>> nameService = NameService()>>> nameService.BaseNameService = NameService.Default>>> nameService.PropertyNameMap.AddNameMapping("UserName", "Zhanghao")>>> nameService.ClassNameMap.AddNameMapping("Users", "Yonghus")>>> nameService.ClassNameMap.AddNameMapping("Posts", "Tiezis")>>>>>> connStr = "Provider='System.Data.SqlClient';Provider Connection String='Initial Catalog=Jasper;Data Source=.\SQLExpress;Integrated Security=True;';Generate Default EDM=True" 将命名服务对象作为CreateDynamicContext的第二个参数 >>> ctx = DynamicContext.CreateDynamicContext(connStr,nameService)>>> Users不存在了,已经被换掉了 >>> u = ctx.Users[0]Traceback (most recent call last):File , line 0, in <string>##45File , line 0, in _stub_##46AttributeError: couldn't find member Users 变成了Yonghus和Tiezis: >>> dir(ctx)['AcceptAllChanges', 'AddObject', 'Attach', 'AttachTo', 'CodeRepresentation', 'Connection', 'ContextSaved', 'ContextSaving', 'CreateDynamicContext', 'CreateKey', 'CreateQuery', 'DefaultContainerName', 'DelAttrMethod', 'DeleteObject', 'Detach', 'Dispose', 'Equals', 'ExecuteDirectQuery', 'ExecuteFunction', 'ExecuteNativeMethod',......[阅读全文]

posted @ | Feedback (11) | Filed Under [ ASP.NET/IIS ADO.NET/SQL Server IronPython/IronRuby/F# ]

摘要: 如果你仔细看一下开心贴出的Silverlight 1.1的海报,在框架语言一栏,你会看到 VBx 这个语言, 这个跟VBX(VB早年的组件通称)没什么关系,而是指VB 10.0 (Orcas中的VB版本是9.0)。 微软Visual Basic .NET开发团队的 Paul Vick 对此做了介绍。VBx将是一门基于动态语言运行时(DLR)的动态语言,VBx程序不用预先编译成DLL,动态语言运行时可以在运行时动态将其编译,然后运行。详情参阅Paul Vick的2个贴子: What the heck is "VBx"? http://www.panopticoncentral.net/archive/2007/05/01/20383.aspx After MIX, how many Visual Basic languages are there? http://www.panopticoncentral.net/archive/2007/05/02/20395.aspx...[阅读全文]

posted @ | Feedback (6) | Filed Under [ .NET WPF/SilverLight ]

摘要: 微软的Michael Gannotti发起了一个SharePoint – Silverlight集成竞赛。 竞赛详细情况在他的博客上: Announcing the SharePoint – Silverlight Integration Contesthttp://sharepoint.microsoft.com/blogs/mikeg/Lists/Posts/Post.aspx?ID=220 奖品列表在: The SharePoint – Silverlight Integration Contest Gets Kicked Up a Notch: Way Cooler Prizeshttp://sharepoint.microsoft.com/blogs/mikeg/Lists/Posts/Post.aspx?ID=222 推荐使用的工具,资源和样例:Tools, Resources, and Samples To Help You Create Your Silverlight Content for the SharePoint – Silverlight Integration Contesthttp://sharepoint.microsoft.com/blogs/mikeg/Lists/Posts/Post.aspx?ID=223   比赛很简单。创造一些Silverlight内容,越酷,越引人入胜,越有创意,就越好。把你的内容直接嵌在SharePoint网页里或如果你真想要挑战极限的话,可以将其嵌于一个可重用的webpart中,当然这样从裁判处得分就越多。想提交你的参与作品的话,你需要: 写一个WORD文档或PowerPoint,对你作品做个全面的介绍,内容是什么,制作和发布过程中都做了些什么,所用的工具,采取的步骤等 提交你的作品。你可以在一个外部的网站上发布,或者如果网站是内部的,就制作一个演示录像 (你可以使用Windows Media Encoder来捕捉演示的录像) 然后将你的参赛作品贴在Michael Gannotti的博客上,竞赛截止期是6月15日,获奖者将在一个星期内公布。微软雇员不能参与这个竞赛。奖品: 一等奖: 1个 白Zune 1年的 Xbox Live Service 1份 Gears of War 1份 Office SharePoint Server 2007 Administrators Companion 1份 Groove 2007 1份 Office Professional 2007 二等奖: ......[阅读全文]

posted @ | Feedback (5) | Filed Under [ ASP.NET/IIS WPF/SilverLight ]

摘要:如果你想尝试开发 Silverlight 1.1 应用,又对下载/安装推荐的Visual Studio Orcas Beta 1有点怕怕的话,你可以使用Visual Studio 2005和Expression Blend 2 五月份的预览版 (25.5M)来开发。 根据Bryant Likes的博客,在安装Silverlight 1.1 alpha运行时后,你可以在Visual Studio 2005里, 1. 创建一个类库2. 删除该项目所有的引用3. 右击项目,选择属性4. 在项目属性页的Build页上,点击“高级”按钮,选择“别引用mscorlib.dll”复选框5. 手工添加对 Silverlight 1.1 alpha 运行时的安装文件夹 (\Program Files\Microsoft Silverlight\ ) 里的 mscorlib, agclr, System, System.Core, System.Silverlight, 和 System.Xml.Core程序集的引用 他有一个例程你可以试一下。...[阅读全文]

posted @ | Feedback (13) | Filed Under [ ASP.NET/IIS WPF/SilverLight ]

摘要:Jamie Cool和Nick Kramer在MIX07上做的《DEV22 - Building Silverlight Applications Using .NET (Part 1 of 2) 》讲座http://sessions.visitmix.com/default.asp?event=1011&session=2012&pid=DEV22&disc=&id=1531&year=2007&search=DEV22 里,有几页涉及Silverligh1.1 在图像/界面/XAML方面的特性比较,值得拿来看一下。 总的来说, V1.1= V1.0 +托管代码(CLR) +XAML扩展性 +Control类(用户控件) +控件样例     1.1 alpha 1.1 计划 WPF 控件类 Button 有样例 有 有 TextBox  没有 有 有 Scrollbar 有样例 有 有 Slider  有样例 有 有 ListBox  有样例 有 有 CheckBox 没有 有 有 RadioButton 没有 有 有 ComboBox 没有 有 有 TreeView 没有 没有 有 Accordion 没有 没有 第三方提供 DataGrid 没有 没有 第三方提供 UserControl 有 有 有 布局类 Canvas 有 有 有 Grid 没有 有 有 StackPanel 没有 有 有 ViewBox 没有 有 有 其它 鼠标事件 部分 有 有 键盘事件 部分 有 有 <.Resources> 部分 有 有 数据绑定 没有 有 有 styling(样式化) 没有 有 有 3D 没有 没有 有 硬件加速 没有 没有 有 浏览器之外 没有 没有 有 离线 没有 没有 有 跨平台 是 是 不   这个讲座非常值得一看,下半部分讲座的连接在Building Silver