I need to include in the generated xaml activity some additional information, something like identity information (a comment in document head), unfortunately moving from designer to code editor this information is lost due to the automatic regeneration of the xaml code.
It's important that this information is not visible on the designer (so, no Annotations or Activities can be used).
Our idea is to be able to intercept the serialization / de-serialization of Xaml through a Visual Studio extension, in order to sneak in a comment with internal information.