Skip to content

Instantly share code, notes, and snippets.

@cwensley
Created August 27, 2013 18:02
Show Gist options
  • Save cwensley/6356887 to your computer and use it in GitHub Desktop.
Save cwensley/6356887 to your computer and use it in GitHub Desktop.
Initialize eto.forms application in an monomac/xamarin.mac host
var app = new Eto.Forms.Application(Generator.Detect);
((Eto.Platform.Mac.Forms.ApplicationHandler)app.Handler).AppDelegate = NSApplication.SharedApplication.Delegate;
var form = new Eto.Forms.Form { Size = new Eto.Drawing.Size(200, 200), Title = "Hello!" };
form.Show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment