Aug 18, 2010 at 12:50 PM
Edited Aug 18, 2010 at 12:56 PM
I have found a issue where if you have the following xaml, there seems to be a malfunction inside CM. I have a Listbox with:
Micro:Message.Attach="[Event Loaded] = [Action GetReports]" with GetReports being a coroutine.
Stepping though CM, Inside ActionMessage.Invoke there is a line "var outcome = execute.Invoke(target, values);" which seems to misfire, even though all the information to complete the invoke is there.
If I put that Message.Attach into the <Grid> control that contains the ListBox it suddenly works.
Any ideas what might be going wrong here?
I would guess that there is some sort of issue when a message attaches to the loading event of a control, because that same loading event is used to set up the Action Message. Debugging reveals that the setup is done by CM before the action message is invoked,
but still it fails strangely.