12 2013 档案
摘要:http://msdn.microsoft.com/en-us/library/hh821027.aspx
阅读全文
摘要:Basically there are two possible ways to send a message, first using an overload of theRaisePropertyChangedand secondly by using theMessenger.Default.Sendcommand. For the address detail screen I used the messaging overload ofRaisePropertyChanged.public AddressViewModel SelectedAddress{ set { va...
阅读全文
摘要:You can get a different instance each time by passing a different key to the GetInstance method. However the instances will be cached, so if you do not want to keep them in the cache, you will need to call Unregister with the corresponding key.I was creating the VM upfront because the MainVM was sen
阅读全文
摘要:Essentially this one line of code will set the start page of the application. var navTo = new Uri("/Views/MainPage.xaml", UriKind.RelativeOrAbsolute); ((App)Current).RootFrame.Navigate(navTo);Then you will have to set start page inApp.Xaml.csas below. private void Application_Launching(ob.
阅读全文
摘要:xmlns:Command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP8"
阅读全文
摘要:JSON values can be:A number (integer or floating point)A string (in double quotes)A Boolean (true or false)An array (in square brackets) - []An object (in curly brackets) - {}nullJSON ArraysJSON arrays are written inside square brackets.An array can contain multiple objects:{ "employees":
阅读全文
摘要:Enumerating directly over an IDictionaryreturns a sequence of KeyValuePair structs:public struct KeyValuePair { public TKey Key { get; } public TValue Value { get; }}Enumerating over a nongeneric IDictionary returns a sequence of DictionaryEntry structs:public struct DictionaryEntry{ public objec...
阅读全文
浙公网安备 33010602011771号