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

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.

主站蜘蛛池模板: 景洪市| 昭觉县| 北流市| 上饶县| 青岛市| 苏尼特右旗| 元谋县| 迭部县| 怀集县| 龙胜| 江陵县| 孙吴县| 邢台市| 武强县| 玉树县| 宁河县| 内乡县| 滕州市| 九龙县| 惠州市| 朝阳市| 海淀区| 武夷山市| 淮安市| 喀喇沁旗| 兴业县| 阳城县| 内乡县| 黔东| 普定县| 洞头县| 米泉市| 尚志市| 临潭县| 昌图县| 上栗县| 会同县| 勃利县| 临武县| 阳谷县| 寿宁县|