Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 // Constructors
 public WidgetWithNativeWindow2(GtkEmbed2 embed)
 {
     embedParent = embed;
 }