I am very new to Caliburn, and so far I am very impressed. I have run through the Coproject tutorial with success.
Now I am trying to adapt some of those processes to include the 3rd party controls we use at work. I am trying to use the message.attach in a RadGridView to open a details editor, but I can't figure out the correct $variable to pass.
I successfully trigger the method in the ViewModel, but no data from the view is passed in. For example I have added this to the RadGridView
cal:Message.Attach="[Event SelectionChanged]=[Action OpenItemDetail($dataContext)]"
public IEnumerable<IResult> OpenItemDetail(TeamMember item)
if (item != null)
var editor = Items.FirstOrDefault(x => x.Item.EmplID == item.EmplID);
if (editor == null)
editor = IoC.Get<ITeamMemberDetail>();
yield return editor.Setup(item.EmplID).ToSequential();
I have also tried passing $this and $eventArgs with no success.
Any help would be appreciated.