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

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.

主站蜘蛛池模板: 兴化市| 永福县| 淅川县| 莱州市| 商河县| 临朐县| 城口县| 东山县| 马关县| 文登市| 平果县| 清原| 太保市| 页游| 克什克腾旗| 宁远县| 荥阳市| 涟水县| 东乌珠穆沁旗| 灌阳县| 民权县| 新民市| 从江县| 江门市| 涟水县| 永登县| 临安市| 永德县| 伊吾县| 临城县| 文安县| 镇坪县| 林周县| 富源县| 金门县| 定安县| 武安市| 正宁县| 黎川县| 松江区| 中超|