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

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.

主站蜘蛛池模板: 龙泉市| 密山市| 东山县| 澜沧| 密云县| 河北省| 临西县| 兴城市| 宽甸| 重庆市| 临漳县| 寻甸| 揭阳市| 苏尼特左旗| 承德市| 台东县| 佳木斯市| 旬邑县| 玉环县| 新野县| 岗巴县| 七台河市| 芦溪县| 德令哈市| 九龙县| 吉木萨尔县| 晋城| 大姚县| 阿合奇县| 娄底市| 庄浪县| 高碑店市| 金山区| 阿拉善左旗| 孙吴县| 晋城| 沽源县| 江口县| 肇庆市| 澄城县| 洞口县|