Topics: UI Architecture
May 24, 2011 at 4:01 PM
Edited May 24, 2011 at 4:02 PM


Every once and a while, we go view first to solve a particular problem.  However, remembering to use the attached property which ties up our buttons/components using caliburn is quite often a hangup. 

Is there any way to do this from the code behind on the View?

 cal:Bind.Model="{Binding}"  /*Let's do this exact line in c#!*/


May 24, 2011 at 4:08 PM
Edited May 24, 2011 at 4:08 PM

Is this the right way to do this?

Caliburn.Micro.Bind.SetModel(_View, this); // This is a ViewModel 





May 24, 2011 at 4:13 PM

That should do it.