X01.Lab. StreetApp: MVVM

Source: Internet
Author: User

The Store App is particularly applicable to the MVVM mode. Since SQLite and Bing Maps are used, the first step is to search and install these two extensions online. It is hard to imagine that SQLite is the first choice to run SQL Server databases on smartphones. Running SQLite requires C ++ extension, and solution property => in configuration management, the CPU cannot be Any, and should be changed to x86. After the installation,ExtensionItem:

Step 2: Download the source code. You can go to my dingtalkX01.Lab. Download. Double-clickLab. sln, PressF5Run as follows:

This is the Logon page. User Name isHello, Password is123And then click the Logon button to go to the Reports page. It takes a long time to download many images from the Internet. As follows:

Click any one to go to the Report Map page. As follows:

Because Bing Maps requires a license, it is not displayed. You can click the Open button in the lower right to display a map on the right of the screen. Pulling the map to the left produces dramatic changes, as shown below:

Of course, there areSearch,Share,SettingAnd other super buttons,ToastAnd so on. This program is from Programming Windows Store Apps with CSharp. It basically contains all aspects of Store App development. We recommend that you purchase it. The biggest highlight of this program is the use of the MVVM mode.

Although there are many pages, the code of the pages is consistent, and the code of the pages is as follows:

   .InitializeViewModel(

Why is there so little? MVVM mode is indispensable. The following code is interesting:

  Dictionary<, > _Values =  Dictionary<, >  T GetValue<T>([CallerMemberName]  name =  _Values.ContainsKey(name) ? (T)_Values[name] :   SetValue( value, [CallerMemberName]  name = =   (PropertyChanged !=   OnPropertyChanged([CallerMemberName]  name = 

CallerMemberName] The use of features saves a lot of trouble.

And,TinyIoC,SQLite,Newtonsoft. JsonThese NuGet libraries are also worth learning and using. WhilePackage. appxmanifestSimilar to Android. It seems that these big companies are also learning from each other. People do not know what they are, but learn what they know. "Knowing is knowing, not knowing, or knowing ."

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.