Do I serialize my usercontrol in a WPF richtextbox.
With standard elements everything is OK, but with his control problems.
Not serializenode Events, as stated in MSDN:
Event handling is not saved
When serializing event handlers that are added through XAML are not saved. XAML without code-behind (also without an associated mechanism x:Code) has no way to serialize procedural logic of the runtime. Because serialization is self-contained and limited to the logical tree, there is no facility to store event handlers. As a result, the event-handler attributes, and the attribute itself, and the string value name of the handler are removed from the output XAML.