Anyone know of good code examples of the Caliburn or Caliburn Micro framework example that illustrate routing Actions with DataGrid items?
Anyone know of good code examples of the Caliburn or Caliburn Micro framework example
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This example attaches an action to each row in the datagrid. The action is handled on the viewmodel that is the datacontext for the entire view. This was built in Micro, but the syntax is the same. This does not use the convention-based data binding.
The relevant portion of the view is:
and the corresponding viewmodel looks like this:
The special parameter $dataContext is discussed here:
http://caliburn.codeplex.com/wikipage?title=Parameters&referringTitle=Documentation