Action Messages and "Blendability" in vs2010

Jul 28, 2010 at 2:29 PM

Just to clear up some confusion.

Once I start using Message.Attach the IDE cannot show the design view anymore because of regular blendability issues.

I get an exception that says: No target found for method LoadCustomers.

Is this normal or am I doing something wrong?

Coordinator
Jul 28, 2010 at 2:32 PM

That's a legitimate bug. I'm pretty sure I can fix it easily. It's just a missing design-time check in ActionMessage I assume. I'll add a ticket for that. Thanks!

Jul 29, 2010 at 9:16 AM

Good stuff.

Jul 30, 2010 at 8:02 AM

I added this to the issue tracker item that was created, but adding the following two lines in ActionMessage.cs allowed the design veiw to work for me. Unsure of the full impact through.

 

       /// <summary>
        /// Prepares the action execution context for use.
        /// </summary>
        public static Action<ActionExecutionContext> PrepareContext = (context) =>{
            if (Bootstrapper.IsInDesignMode)	<- NEW
                return;			<- NEW