This project is read-only.

Bind TriggerAction to DataGrid.DataContextChanged

Nov 2, 2012 at 7:47 AM
Edited Nov 2, 2012 at 7:53 AM

Hi All, 

I am trying to set my TriggerEvent of my TriggerAction to the DataContextChanged event of my DataGrid but I am getting the following error:

"Invalid Trigger Event"

Here is my code:


 <Trigger:TriggerAction TriggerEvent="DataContextChanged" MethodName="BindingComplete" TargetControl="{Binding ElementName=datagridList}" />


Can anyone help me out with the correct way to do this? I wish to trigger an event when the DataGrid binding is complete and DataContextChanged seems to be appropriate.