Where to put StateChanged trigger syntax?

Jul 18, 2010 at 5:54 AM
Edited Jul 18, 2010 at 5:55 AM
Hi, Where do we put the StateChanged trigger? <sam:StateChanged Completed="True" StateName="BeforeUnloaded"> <... /> </sam:StateChanged> the above code gave me a compile error saying A value of type 'StateChanged' cannot be added to a collection or dictionary of type 'TriggerCollection'. In blend, i added the assembly but when i click the New button in the Trigger properties panel, the assembly or the StateChanged trigger doesn't show up in dialog... help pls... thanks