Where should I call view methods?


i have specific problem want populate autocompletebox myself , have found i.e. method populatecomplete() don't know call. vm should not know view. codebehind file want keep clean according several recommendations out there. so, can make construct xaml tags binds vm specific methods called? far have seen binding properties , commands. or there other preferred way of solving this?


ok, maybe described problem bit fuzzy. primary question not how populate acb, how/where call uc methods if not in codebehind or viewmodel. maybe it's wrong ask question, perhaps answer solve in way 1 describe.

about specific problem above. didn't want populate acb myself, wanted load before user started typing he/she doesn't have wait. thought perhaps solve manually populating it. anyway, search forum , found solution. if set minimumprefixength=2, minimumpopulatedelay=200, maxdropdownheight=300 displays enough.

so, acb problem solved, i'm still interested in best practices on how , call control methods if necessary.

thank anyway jeremy reply :-)



Silverlight  >  MVVM / ViewModel Pattern with Silverlight



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........