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

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.

主站蜘蛛池模板: 施甸县| 柳林县| 诸城市| 墨江| 师宗县| 武平县| 鄂尔多斯市| 封丘县| 庆安县| 隆回县| 尖扎县| 巨野县| 师宗县| 荃湾区| 灌云县| 蒲江县| 伊吾县| 营口市| 遂昌县| 石狮市| 许昌市| 华容县| 盈江县| 哈密市| 承德县| 安吉县| 祁东县| 乌兰县| 合水县| 沁水县| 广宗县| 杂多县| 红原县| 长宁区| 衡水市| 斗六市| 礼泉县| 安多县| 蕲春县| 如东县| 陕西省|