I finally managed to get through this. This is a lot easier than I thought. For others who are trying to find their way, here's how it works:
First, the GetData()override (read question) should be managed by YOU. You need to decide what you want to send to the visualizer. Send enough information so you can restore an object in a call Show().
WPF , , . XamlReader XamlWriter, / WPF.
Show(), Form. , Visual Studio Form Control ( WinForms), WPF Window s, , ElementHost , WPF ElementHost.
ViewBox ElementHost , .
WPFVisualizers GitHub , - . DrawingImage UIElement. WPF, , . VisualizerBase, / . WPF , 1 , :
public class GeometryDrawingVisualizer : VisualizerBase<GeometryDrawing, GeometryDrawingControl>
{
}
. GeometryDrawing. (GeometryDrawingControl ) - WinForms Control ( Form, ), . ElementHost , , .