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

Views

The Views define the appearance and layout of the UI. They typically connect with a View Model through the use of their DataContext property and display the data that it supplies. They expose the functionality provided by the View Model by connecting its commands to the UI controls that the users interact with.

In general, the basic rule of thumb is that each View has one associated View Model. This does not mean that a View cannot data bind to more than one data source or that we cannot reuse View Models. It simply means that, in general, if we have a class called SecurityView, it is more than likely that we'll also have an instance of a class named SecurityViewModel that will be set as the value of that View's DataContext property.

主站蜘蛛池模板: 花垣县| 马边| 石河子市| 偃师市| 巩义市| 满洲里市| 金川县| 炎陵县| 怀远县| 托克逊县| 周至县| 老河口市| 攀枝花市| 陇西县| 徐闻县| 临城县| 贡觉县| 金川县| 鄂托克前旗| 清徐县| 英德市| 天气| 天台县| 霍山县| 金寨县| 绥滨县| 绥棱县| 湟中县| 清徐县| 嘉兴市| 余姚市| 朝阳县| 安义县| 偃师市| 青冈县| 家居| 资讯 | 鹤岗市| 姜堰市| 贵港市| 紫金县|