我們知道,Silverlight 下是不支援GB2312編碼的,所以Silverlight for Windows Phone 自然也不支援GB2312編碼,以致無法使用網上的“C# 漢字轉拼音”的方法。其實我們可以使用一種笨方法,即將漢字和拼音放在一個數組中,然後遍曆數組進行匹配。建立一個中文輔助類ChineseHelper ,其中有兩個靜態方法,得到漢字對應的拼音以及判斷字元是否為漢字 下面是測試代碼及運行效果 原始碼下載:
在Wp7.1中又新增加了多個Task,可以實現對BingMap、鈴聲音使的操作。另外還有一些原來的Task的功能也得到了加強。1. BingMapsTask:用來調用Bingmaps,並且可以標記中心點、搜尋、設定顯示比例。與BingMaps控制項相似但是可用api功能比較弱。_tskBingmap = new BingMapsTask(); _tskBingmap.Center = new GeoCoordinate(30.24, 120.123);
Book DescriptionBring your game ideas to life—with guidance from a Windows programming legendBegin creating your own game apps for Windows Phone 7—guided by the consummate teacher, award-winning author Charles Petzold. Focusing on the XNA 2D
安裝好開發環境,我們就編寫我們的第一個windows phone應用程式吧。對於我們一門程式設計語言或者我們接觸到的編寫的第一個程式大家都很熟悉。HelloWorld. OK,跟我做個簡單的Hello world吧,開啟Microsoft Visual Studio 2010 Express for Windows Phone=>file=>new project=> 我們能看到2塊,一是silverlight for windows phone ,二是XNA
Windows Phone 7開發工具套件包括Visual Studio 2010 Express for Windows Phone、Windows Phone模擬器、Expression Blend 4 for Windows Phone、XNA Game Studio 4.0和新增加的Bing 地圖服務SDK。 英文版的光碟片鏡像:點擊下載文檔中心:Windows Phone developer documentation home開發論壇:Windows Phone Developer
Book DescriptionGet the guide that makes learning Windows Phone 7 plain and simple! This full-color, no-nonsense book shows you the quickest ways to set up and use your new phone — with easy-to-follow steps, screenshots and concise, straightforward
Book DescriptionA one-of-a-kind book on Windows Phone 7 developmentWhile numerous books cover both Silverlight and XNA, there lacks a resource that covers the specifics of Windows Phone 7 development. This book fills that void and shares the