官术网_书友最值得收藏!

Creating our smart-house application

Create a new project for the smart-house application, based on the MVVM template we created earlier.

With the new project created, add the Microsoft.ProjectOxford.Face NuGet package.

As we will be building this application throughout this book, we will start small. In the MainView.xaml file, add a TabControl property containing two items. The two items should be two user controls, one called the AdministrationView.xaml file and the other called the HomeView.xaml file.

The administration control will be where we administer different parts of the application. The home control will be the starting point and the main control to use.

Add corresponding ViewModel instances to the Views. Make sure they are declared and created in MainViewModel.cs, as we have seen throughout this chapter. Make sure that the application compiles and runs before moving on.

主站蜘蛛池模板: 日照市| 麻城市| 乾安县| 平昌县| 县级市| 屯昌县| 福州市| 土默特左旗| 封丘县| 新乡市| 格尔木市| 万州区| 墨脱县| 岑巩县| 徐州市| 隆安县| 深州市| 金溪县| 栖霞市| 常山县| 新化县| 双柏县| 天柱县| 广丰县| 化隆| 达州市| 咸宁市| 临江市| 天柱县| 嵊泗县| 金平| 茶陵县| 西青区| 张家界市| 达尔| 清徐县| 连城县| 天柱县| 扶风县| 朝阳市| 大厂|