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

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.

主站蜘蛛池模板: 孟津县| 双峰县| 鄯善县| 和静县| 安化县| 天津市| 云安县| 铜陵市| 南澳县| 吴桥县| 九江县| 宝坻区| 左贡县| 丁青县| 梁河县| 即墨市| 长寿区| 库车县| 家居| 北安市| 辽源市| 万载县| 汪清县| 广饶县| 湘乡市| 北碚区| 吉首市| 乳源| 贵阳市| 周至县| 满洲里市| 三门峡市| 轮台县| 滦南县| 营山县| 大名县| 兴安盟| 万荣县| 姚安县| 珠海市| 安义县|