I'm using MEF to resolve my ViewModel to my View (the satisfy imports is in the MainView.cs file) and I have a custom cell template that looks like the sytax below :
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<HyperlinkButton Margin="5,0,0,0" Visibility="Visible" ToolTipService.ToolTip="Edit" Command="{Binding Path= DataContext.EditContact, ElementName= MainView}" CommandParameter="{Binding Path= DataContext.SelectedContact,ElementName= MainView}">
<Image Visibility="Visible" Source="/Images/tools.png"/>
</HyperlinkButton>
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
I can't trigger my RelayCommand from within the grid. Can you assist me in how I can do this considering the way I'm marrying my viewmodel to my view. Your help is greatly appreciated.