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

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.

主站蜘蛛池模板: 会同县| 道孚县| 福鼎市| 永昌县| 远安县| 江津市| 工布江达县| 碌曲县| 中山市| 隆尧县| 泸州市| 张家口市| 潢川县| 西林县| 托克逊县| 集安市| 静安区| 昌图县| 宁波市| 华容县| 安远县| 望城县| 额尔古纳市| 平湖市| 松桃| 班戈县| 茌平县| 邯郸县| 睢宁县| 邮箱| 娄底市| 多伦县| 延川县| 寻乌县| 曲松县| 平湖市| 万安县| 理塘县| 清水县| 太原市| 遂昌县|