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 ."