protected override MonoDevelop.Components.Control GetNativeControl() { var editorWidget = EditorWidget; editorWidget.ShowAll(); var editor = new GtkEmbed2(editorWidget); var editorEto = editor.ToEto(); Preview = new PreviewEditorView(editorEto, null, null, GetEditorText); var nspreview = XamMac2Helpers.ToNative(Preview, true); var nsviewContainer = new NSViewContainer2(nspreview); return(nsviewContainer); }
// Constructors public WidgetWithNativeWindow2(GtkEmbed2 embed) { embedParent = embed; }