Windows Phone 開發教學系列視頻之四天玩轉 Windows Phone 開發
http://msdn.microsoft.com/zh-cn/windowsphone/hh182984
-------------------------------------------------------------------------------------------------------
1.快捷鍵類定義屬性
(1)鍵入prop,按下回車,就會出現如下字符串:
public int MyProperty
{ get; set; }
(2)按下TAB就可以在變量類型 (int) 和變量名 (MyProperty) 轉換,輸入實際的類型和名字
(3)按兩下回車,結束輸入
2.快捷創建並初始化類屬性
car car1 = new car() {Name ="car',type="first"};
然後在 ( ) 後使用{ }就可以直接初始化類屬性成員的值。
http://msdn.microsoft.com/en-us/library/ff402549(v=vs.92).aspx
The following Silverlight controls are not supported in Windows Phone:
ComboBox |
TreeView |
OpenFileDialog |
SaveFileDialog |
ToolTip |
Calendar |
DataGrid |
DatePicker |
Frame – use PhoneApplicationFrame class. |
Page – use PhoneApplicationPage class. |
GridSplitter |
Label |
ScrollBar |
TabControl |
4.讓XMAL PAGE支持翻轉
http://msdn.microsoft.com/en-us/library/ff769553(v=vs.92).aspx令 SupportedOrientations property to
PortraitOrLandscape
5.鍵入未經引用的系統類定義或者系統庫函數:
可以在輸入之後按CTRL啓動helper然後回車,VS自動引用。
6.綁定數據到控件
在C# code將數據幫到到控件
control.itemsSource = classInstant;
在XAML裏面將datatemplate裏面的控件CONTENT屬性設置爲:{Binding 屬性名}navigationserver.navigate 函數
8.TEXTBOX中輸入模式的選擇
有以下十種模式:
Default (Standard QWERTY Keyboard)
Text (Standard text with sugestions and autocorrection)
Url (URL Address)
EmailSmtpAddress (Email Address)
EmailNameOrAddress (Email name or address)
Maps (Map Localization search)
TelephoneNumer (Telephone number)
Search (Search Query)
NameOrPhoneNumber (SMS Contact search)
Chat (Text input with intelligent features like text abreviation)
<TextBox Text="http://jyeray.blogspot.com">
<TextBox.InputScope>
<InputScope>
<InputScopeName NameValue="Url" />
</InputScope>
</TextBox.InputScope>
</TextBox>
9.在WINDOW PHONE上添加System.ServiceModel.Syndication引用
The secret is that you need to add a reference to the desktop Silverlight v3 assembly, C:\Program Files\Microsoft SDKs\Silverlight\v3.0\Libraries\Client\System.ServiceModel.Syndication.dll. This will get deployed along with your application, giving you access to the Syndication namespace.