I've been reflectoring, googling, stackoverflowing for weeks and just now stumbled upon the attribute injector code that runs to give ForEachActivity
Why weren't these attributes placed on the classes themselves? I have no idea.
Point your reflector at System.Activities.Core.Presentation in %windir%\Microsoft.NET\Framework\(4 something)
System.Activities.Core.Presentation.DesignerMetadata.Register(); //Sneak peak { AttributeTableBuilder builder = new AttributeTableBuilder(); builder.AddCustomAttributes(typeof(ActivityAction), new Attribute[] { new EditorReuseAttribute(false) }); SequenceDesigner.RegisterMetadata(builder); ForEachDesigner.RegisterMetadata(builder); }
No comments:
Post a Comment