Silverlight 5 / HTML5 / CSS3 / Visual Studio / Flash CC / Office2012 / Flash Player 11 / Windows 8
故宮清明上河圖的新世代 - Silverlight 2 Beta 搶先體驗

故宮清明上河圖的新世代 - Silverlight 2 Beta 搶先體驗
以下是相關的網址:故宮清院本「清明上河圖」Silverlight 2 搶先體驗(英文版)http://learnet.npm.gov.tw/silverlight/
(安裝注意事項) (周旺暾提供)
沒有裝 Silverlight 2 Beta1 的使用者,第一次進去會看到要求安裝 Silverlight 的畫面,安裝過程中會出現 Silverlight 2 Beta1 的安裝畫面。如果使用者電腦沒有 Silverlight 舊的版本,安裝完成之後,就能夠正常執行。但是若使用者電腦裡有任何舊的版本 (1.0 或 1.1 Alpha), 安裝完成之後,會出現錯誤訊息(如圖2)。這時必須要關閉瀏覽器視窗再重新開啟,就能看到 Silverlight 2 的網站。
故宮資訊中心林國平主任(左圖背對鏡頭簡報者),向微軟資深副總裁 Scott Guthrie(左圖最左側者)、Silverlight General Manager、亞洲區負責推動 UX 市場的 General Manager Forest Key 簡報故宮對於應用 Silverlight 技術在數位典藏網路化的積極想法。右圖自左而右:Scott Guthrie、Peter Hu、林國平主任
由原製作團隊 e-Crusade 所撰寫的技術白皮書,包含部分原始碼。
http://www.e-crusade.com/silverlight/npm/NPMWhitePaper.htm
由同樣 Silverlight 2 技術所製作的美國 Hard Rock 的上線網站,也是運用了 Deep Zoom 特效,非常精彩,包含他們所典藏的著名熱門搖滾歌星的紀念物。
http://memorabilia.hardrock.com/
本文章來自於神魂顛倒論壇 http://bbs.flash2u.com.tw/
原文網址:http://bbs.flash2u.com.tw/dispbbs_220_87635_1_1.html
用 ListBox 和 DataBinding 顯示列表資料
用 ListBox 和 DataBinding 顯示列表資料 (木野狐譯)
作者: Scott Guthrie
出處: http://blog.joycode.com/scottgu/
【原文地址】Silverlight Tutorial Part 5: Using the ListBox and DataBinding to Display List Data
【原文發表日期】 Friday, February 22, 2008 5:51 AM
這是8個系列教學的第5部分,這個系列示範如何使用 Silverlight 2 的 Beta1 版本來建立一個簡單的 Digg 客戶端應用。這些教學請依次閱讀,將有助於您理解 Silverlight 的一些核心撰寫程式概念。
用 ListBox 和 DataBinding 顯示我們的 Digg 故事
前面我們使用了 DataGrid 組件來顯示我們的 Digg 故事。當我們想用多列的格式來顯示內容時,它很適合。然而對我們的 Digg 應用程式而言,也許我們想稍微改變一下頁面的顯示方式,讓它看起來不太像網格,而更像一個列表。好消息是,這很容易實現 - 並且我們不需要改變任何程式程式碼。
首先我們將 DataGrid 組件替換為 <ListBox> 組件。我們保持原有的組件名稱 ("StoriesList"):
重新執行一下程式,搜尋故事,ListBox 會顯示搜尋結果如下:
你可能覺得奇怪 - 為什麼每個紀錄都變成了 "DiggSample.DiggStory"? 這是因為我們把 DiggStory 對像綁定給了 ListBox(而綁定的預設行為會叫用這些對象的 ToString() 方法)。如果我們想改用每個 DiggStory 對象的 Title 屬性來顯示紀錄,可以設定 ListBox 的 DisplayMemberPath 屬性:
這樣做之後的效果如下:
如果要每次顯示不止一個值,或者定制每個紀錄的佈局,我們可以覆蓋 ListBox 組件的 ItemTemplate,並提供一個自訂的 DataTemplate. 然後在這個 DataTemplate 內,定制每個 DiggStory 對像如何顯示。
例如,我們可以用 DataTemplate 同時顯示 DiggStory 的 Title 和 NumDiggs 值,如下所示:
在 DataTemplate 中,我們可以綁定 DiggStory 對像中我們所需的任何公共屬性。注意上面我們是如何用 {Binding 屬性名} 語法,配合兩個 TextBlock 組件來完成這一點的。
設定了上述 DataTemplate 後,我們的 ListBox 會顯示如下:
讓我們再進一步,修改 DataTemplate 的定義如下。其中使用了兩個 StackPanel - 一個用於水平地堆疊行,另一個用來垂直地堆疊文字塊(TextBlock)。
上述 DataTemplate 會使我們的 ListBox 用如下方式顯示紀錄:
我們在 App.xaml 檔案中定義如下的 Style 規則(注意如何使用 LinearGradientBrush 來獲得 DiggPanel 上的好看的漸變背景效果):
關於 ListBox 有一點值得注意 - 即使我們定制了其紀錄的顯示方式,它仍然會提供懸浮以及選中狀態的語義,不管你使用的是滑鼠游標還是鍵盤(上/下方向鍵,Home/End,等):
ListBox 還支援完整的流式改變大小的功能 - 並在需要的時候提供內容的自動捲動功能(注意當視窗變小時,水平捲動條是如何出現的):
下一步
我們現在已經把資料的顯示切換成了基於列表的方式,並清理了其內容列表。
(翻譯:木野狐)
本文章來自於神魂顛倒論壇 http://bbs.flash2u.com.tw
原文網址:http://bbs.flash2u.com.tw/dispbbs_220_83693_2.html
微軟的 Silverlight 版下載中心

微軟推出的 Silverlight 版下載中心。Long Zheng 在其部落格上發佈了一篇較為詳細的關於此網站的介紹,而且還上傳了體驗視訊(via ActiveWin)。
存取地址:http://preview.microsoft.com/downloads/HomePage.aspx
來源:Microsoft.com Downloads Beta in Silverlight
Silverlight案例:MSN 美國 08 年選舉站

Silverlight案例:MSN 美國 08 年選舉站
該網站允許使用者檢視每位候選人的訊息、新聞以及針對不同問題(如:環境問題等)所採取的行動,也可以將任意兩位候選人進行對比。就技術方面來看,微軟正在嘗試在不同方面應用 Silverlight ,帶給大家更出色的瀏覽體驗。
Tafiti 和 Windows Live 快速應用 Quick Apps

Tafiti 和 Windows Live 快速應用 Quick Apps
Windows Live 平台: Mix08 前新新增了兩個 WL Quick Apps 。其中之一就是這個 Tafiti Search visualization
Tafiti 是微軟的一個實驗性網站,Tafiti 使用了 Silverlight 1.0 RC 和 AJAX , 並整合了以下微軟的服務:
Live Search for Web, Books, Blogs, News, and Images
Live ID
Live Spaces
當你登入 Live ID 之後,同時也會登入你的。你可以直接通過 Tafiti Search Visualization 網站發送即時消息,而且還可以將好友新增為管理者,共同管理該 Stack。
存取:http://tafiti.mslivelabs.com/。
Angus 通過視訊解釋了如何來製作這個,以及更多訊息: 觀看視訊,並嘗試。
LiveSide: Tafiti and Windows Live Quick Apps
微軟也推出了 Tafiti 的原始程式碼,且Colin 發佈了一篇 Tafiti 快速應用的細節。我們推薦大家閱讀該文章,尤其是對還未開發過任何快速應用的開發者,這篇文章是很有價值。
可以在 http://codeplex.com/wlquickapps 和 Windows Live Platform Quick Application 獲得程式碼,並且有一份詳細的開發指導,以及視訊。
新版 AOL 郵件將完全採用 Silverlight 技術

新版 AOL 郵件將完全採用 Silverlight 技術
有消息表明,AOL 的新版郵件正在開發中,完全採用微軟 Silverlight 技術。
上周,在 Mix 08 上,展出了這個產品的模型。在一兩個月後 Silverlight 2.0 告別 Beta 階段的時候,AOL 的新版郵件將進入 Alpha 測試。目前,並不能看出新版和目前的郵件有太多不同。
主要的變化是新的主題技術和速度的提升。
在皮膚方面,AOL 上周展示了 Bungie 的《光環戰爭》遊戲的主題,更改收件箱的皮膚只需要幾秒。AOL 的電郵副總裁 Ben-Yoseph 表示,他的團隊正在工作使每個使用者都能自己設計主題,顏色和風格完全自主……且不論是否華而不實,Silverlight 版的 AOL Mail 的確帶來了一些 Gmail 沒有的功能。個性和定制能力使 AOL 的網路應用更加人性化。
Silverlight 2 , Deep Zoom 及 PhotoZoom - 準備建立你自己的可縮放圖片收藏


Steve Clayton 發佈了一篇關於 Silverlight 2 演示的文章,其中有提到一項叫作 Deep Zoom 的技術,現部署在 http://memorabilia.hardrock.com/。
現在微軟推出了 Silverlight 2,那些縮放圖片的技術已經向開發者開放了,因此可以將 Photosynth / Seadragon 技術加入開發者們的網路應用中。
對於那些對此感興趣的人來說,一定記得我們在之前已經介紹了一個 Live 實驗室的項目:
"Though not yet released, at a basic level PhotoZoom will allow users to add
photos via an upload tool or import from an RSS/Atom feed. These can then be
viewed as thumbnails or at their full resolution. Once processing by the server
is complete, the zooming functionality is enabled."
Silverlight 2 和 DeepZoom - 微軟推出 PhotoZoom
以下是3個範例:
Live@edu 網站更新,並採用 Silverlight
Live@edu 網站更新,並採用 Silverlight
Live@edu 是微軟的校園 Windows Live 計劃,輔助學生更好的使用 Windows Live 服務產品(桌面,線上,移動)。主要服務產品有 Hotmail, Messenger, SkyDrive, Spaces, Office Live Workspaces, Writer, Mobile。最近其網站更新了,並採用了 Silverlight 技術。
存取:http://my.liveatedu.com/
微軟Silverlight在棒球大聯盟亮相
微軟的Silverlight迎來了一個大客戶,美國棒球職業大聯盟的網站開始使用Silverlight 1.0。滿足使用者以互動方式,通過瀏覽器觀看比賽視訊的要求。
棒球職業大聯盟通過這項技術來回放棒球比賽中的精彩場面,通過Silverlight來整合新聞與其他內容。例如,一個關於紐約洋基隊三壘手Alex Rodriguez 打出他的第五百個本壘打的新聞,透過Silverlight播放器,使用者可以點選觀看重放這個精彩場面。並且可以以電子郵件的方式將視訊連結推薦給給朋友。
棒球職業大聯盟網站發言人Matthew Gould說:「Silverlight輔助棒球職業大聯盟的網站提升到一個多媒體網站的水平。」重要的是,該網站計劃借助Silverlight推出他們的MLB.TV線上比賽直播。一個BETA版本的播放器將會在一個月後放出,Gould說。微軟在四月發佈了Silverlight,競爭對手直指Adobe公司的FLASH技術--通過在網站中以插入的方式提供大量視訊播放和交互式媒體連結的技術。
同FLASH一樣,使用者也需要先下載Silverlight播放器才能播放視訊內容。現在Silverlight的版本號還是1.0,只有1.4兆大小,下載並安裝只需要一分半鐘。
Gould說,在使用Silverlight之前,棒球大聯盟的網站還是靠Windows Media Player和FLASH來播放視訊內容。
Silverlight簡介
Silverlight是一個跨瀏覽器的、跨平台的外掛,為網路帶來下一代基於.NET的媒體體驗和豐富的交互式應用程式。Silverlight提供靈活的撰寫程式模型,支援AJAX, VB, C#, Python, Ruby等語言,並集成到現有的網路應用程式中。Silverlight對執行在Mac或Windows上的主流瀏覽器提供高質量視訊訊息的快速、低成本的傳遞。
40個以上的Silverlight元件免費使用

40個以上的Silverlight元件免費使用
Control, ContainerControl, ScrollableControl, Panel
Button, CheckBox, RadioButton, GroupBox, Label
TextBox, NumericUpDown
ImageBox, ImageList
ScrollBar, HScrollBar, VScrollBar
Form, MessageBox, Cursor
ListBox, CheckedListBox
ComboBox
TreeView
MonthCalendar
TabControl, Splitter
ToolTip, ProgressBar, Timer
ToolStrip, StatusStrip, MenuStrip, ToolStripButton, ToolStripComboBox, ToolStripDropDown, ToolStripLabel, ToolStripProgressBar, ToolStripSeparator, ToolStripSplitButton, ToolStripTextBox
XamlCanvas (Silverlight specific)
Flash & Silverlight Demo 大比拚
近日,Silverlight已經開始支援FIREFOX了,所以順便看了一下Silverlight的DEMO總體來說感覺就是在模仿FLASH已經推出的許多效果。不過也不能說微軟沒有創意畢竟Silverlight出的比FLASH要晚那麼久。不過Silverlight跟FLEX比較也覺得雖然其效果基本上實現了,但是作為動畫的完整度來說很差,這就是細節了。無論是ADOBE,還是原先的MACROMEDIA都是對動畫流暢度等瞭如指掌的。微軟想拿下設計大餐並非易事。下面把兩者同一類型的DEMO發出來給秀一下,大家就能發現兩者的區別了。
地圖類
FLASH代表YAHOO MAP DEMO
Silverlight DEMO
自行車運動類
FLASH DEMO
Silverlight DEMO
視訊瀏覽
FLASH DEMO
Silverlight DEMO
這個就是比較大型的項目比拚,ADOBE還有一些
In Labs: Flex 3 Product Configuator
The configurator is a simple application that allows the user to choose options to create their very own custom bowling shirt. (Built by Teknision)
Read more about it and download the source code.
In Labs: Flex 3 Dashboard
This demo application displays data using a pod layout as well as charts, forms, data grids, links, and multiple behaviors such as drag-and-drop, minimizing and maximizing, and more. (Built by ESRIA)
Read more about it and download the source code.
In Labs: Flex 3 Network Monitor
This demo application displays devices from a network in multiple views: network topology, device type and grid. Each device thumb displays real-time data and allows a user to click it for additional data. (Built by ESRIA)
Read more about it and download the source code.
In Labs: Flex 3 Media Widget
The Adobe Media Widget is an embeddable media player created in Adobe Flex. It allows you to embed any of the supported media types into a web page. (Built by Teknision)
Read more about it and download the source code.
In Labs: Flex 3 Component Explorer
Getting familiar with Flex 3? The explorer shows simple usage for MXML components in the Flex 3 framework.
Flex Store: Automation-ready version
This sample demonstrates Automated Testing, part of LiveCycle Data Services ES, with the popular Flex Store application.
Random walk component: Automation-ready sample application
Learn how to instrument the RandomWalk
custom component so that your application records your user's interaction with the component and plays it back using automation tools.
Automation API sample applications
See the new Automation API in action in two new sample apps, which show presentation and recording of metrics, automated testing, co-browsing, and more.
Invoking .NET objects using the Flex RemoteObject API
Mark Piller (May 14, 2007)
Code this sample .NET application and learn how to integrate your Flex and .NET code, expose .NET classes as Flex remoting services, and invoke a remote method with MXML and ActionScript using AMF3 and RemoteObject API.
Adobe Tour Tracker
Watch cyclists race the Amgen Tour of California through this live, real-time Adobe sample app built with Flex and Flash Media Server.
Style Explorer
See this visual way of selecting style settings for Flex 2 user interface components. (Updated for Flex 2.0.1)
Restaurant Finder
Using REST and SOAP web services, your users can update data in a master-detail type application.
Flex Store
States, transitions, and UI techniques—this app demonstrates the types of user experiences you can create with the Flex.
Component Explorer
Getting familiar with Flex? The explorer shows simple usage for MXML components in the Flex framework.
Hybrid Store
See how to integrates a Flex component into an existing HTML application, and take advantage of expressiveness in Flex 2.
Dashboard
Charts data visually using Flex component effects to highlight users' actions as they drill deeper into data.
Photo Viewer
See how the Flex framework creates a seamless user interface and localizes content.
Announcing the Australian Flex Developer Derby winners
Dashboards, configurators, RIA stores, and more—check out the top selections in the Australian coding contest.
Announcing RIAForge.org
Use this new community site to host open source projects built with Adobe technologies—from ColdFusion apps to Photoshop plug-ins to Flash ActionScript libraries.
Integrating Flex 2 and Ruby on Rails
Learn how to use the Ruby on Rails framework with Flex as you build an issue-tracker application.
Sample Template Shop
A shopping cart application that connects to the websites of multiple vendors using httpservice controls. (Alnoor Lalji, Softbytes)
FlexAmp
FlexAmp is an online mp3 player that plays songs off a user's online storage account at Box.net. As the songs play, the application brings in photos, videos and product details from Flickr, YouTube and Amazon based on the ID3 information in the mp3s. (Arpit Mathur, Comcast)
Onyx
Live Video Mixing Environment using Adobe Flash Player 9. (Daniel Hai, consultant)
Amazon.com API Interface
This application is a dynamic interface into a subset of the Amazon.com API (Books, Music, and Video) and explores the features of Flex 2, using MXML primarily for layout and ActionScript 3.0 for functionality. (Darin Kohles, Digital Positions)
Photo Album
A Flex version of a ColdFusion photo album built in 2003, the Flex photo album uses web services to communicate through ColdFusion to the database of albums and images. (Gary Gilbert, Glynn Technologies)
Flex Developer Derby winner - product configurator/guided selling: Home Locator
In Nahuel Faronda』s winning configurator app, users select real estate locations from a US map and filter the results by price, bedrooms, bathrooms.
Flex Developer Derby winner - components and gadgets: SQLAdmin
Kevin Kazmierczak』s winning component app is an online version of query analyzer for Microsoft SQL Server.
Flex Developer Derby winner - data dashboards: StatPods
Rich Tretola's winning dashboard helps users visualize web visits, page views, session tracking, and more.
Flex Developer Derby winner – Mashups: E41ST
Amit Gupta's winning mashup with Amazon.com and the Public Library system gives book lovers an enriched browsing experience across the two sites.
Flex Developer Derby winner - communication/collaboration applications: Lesson Builder
Tim McLeod and Kevin Harris's winning collaboration tool helps a group of content editors create Flash-based training modules.
Flex Developer Derby winner – wildcard: FC64
Darron Schall』s winning application sim