MenuItem
and hence,ToolbarItem
, which derives fromMenuItem
TextCell
and hence,ImageCell
, which derives fromTextCell
TapGestureRecognizer
- Button,ImageButton
SearchBar
defines a SearchCommand
property of type ICommand
and a SearchCommandParameter
property. The RefreshCommand
property of ListView
is also of type ICommand
.
理想的MVVM实现中,View只与ViewModel打交道,不管是获取数据(通过绑定),还是执行命令(通过Command),页面的后台代码在这里应该只负责页面的初始化和绑定页面的上下文,不响应界面的事件,也不填充页面的数据。
MVVM设计模式
1 条评论