c# - What are my controller in my application with a MVVM design pattern -
i have developed wpf-application. have mainwindow inherit window, tabcontrol , many tabitems in tabcontrol inherit usercontrol. every tabitem has own cs-file, code in c# businesslogic, , xaml-file development of ui done. have sql server database connect trough linq.
so have write choice of controller use in application. confused, since havent manually programmed controller , thought viewmodel behave controller in case. correct? can viewmodel behave controller?
a controller can send commands associated view change view's presentation of model (e.g., scrolling through document). can send commands model update model's state (e.g., editing document). model_view_controller
the viewmodel “model of view” meaning abstraction of view serves in mediating between view , model target of view data bindings. seen specialized aspect of controller (in mvc pattern) acts converter changes model information view information , passes commands view model. view model exposes public properties, commands, , abstractions. model_view_viewmodel
the introduction of mvvmc (mvc + mvvm) nessesary in cases drive many similar pairs of view-viewmodel (use cases). can introduce controllers. model_view_viewmodel_controller
Comments
Post a Comment