Hi,
After hours of research and exploring in Google, I came to know that the assembly "Expression.Samples.Interactivity.dll" no longer works with Silverlight 4, due to version issues. For Silverlight 4, it has been updated to "Microsoft.Expression.Interactions.dll". Even the property "CallDataMethod" was also updated to "CallMethodAction" property.
I removed the Expression.Samples.Interactivity.dll and added Microsoft.Expression.Interactions.dll as a reference. Also I updated the following code as:
xmlns:l="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:ei="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions"
After updating this, I was able to add the following code with out any issue. Also the Intellisense for the trigger is working properly.
<sdk:datagrid... >
.....
<l:interaction.triggers>
<l:eventtrigger eventname="LoadingRow">
<ei:callmethodaction methodname="UpdateRowBackGroundColor"/>
</l:eventtrigger>
</l:interaction.triggers>
<sdk:datagrid>
</sdk:datagrid></sdk:datagrid...>
Then, I built the solution and it was successful. When I debugged it, I ended up in another new runtime issue in one file (xxxx.xaml.g.i.cs):
{System.Windows.Markup.XamlParseException: The type 'CallMethodAction' was not found because 'clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions' is an unknown namespace. [Line: 1109 Position: 69]
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)}
Please help me!
Thanks,
Sruthi