[Mono-osx] Why not implement WPF using OpenGL on Mac OS X?

Slug toddglodek at hotmail.com
Mon Jun 1 11:38:37 EDT 2009



Slug wrote:
> 
> 
> Miguel de Icaza-2 wrote:
>> 
>> 
>> Moonlight already supports that.
>> 
>> 
> 
> Where can we find a sample of that?  I would love to stick a small
> Moonlight control inside a GTK# desktop app.  I would be very interested
> to to see well that ran on Ubuntu/Mac/Win.  Is there a link to some 
> documentation?  I looked briefly but couldn't find any.
> 
> ~  Slugs
> 
> 
 I found some documentation about  
http://www.go-mono.com/docs/monodoc.ashx?tlink=23@N%3aGtk.Moonlight The Gtk
bindings to the Moonlight/Silverlight(tm) rendering surface  that seems like
it answers my question :

using Gtk;
using Gtk.Moonlight;

class X {
	static void Main ()
	{
		Application.Init ();
		GtkSilver.Init ();
		Window w = new Window ("Sample XAML Content");
		GtkSilver silver = new GtkSilver (100, 100);
		w.Add (silver);
		w.ShowAll ();
		
		silver.LoadFile ("test-animation-line.xaml");
		Application.Run ();
	}
}
 
-- 
View this message in context: http://www.nabble.com/Why-not-implement-WPF-using-OpenGL-on-Mac-OS-X--tp23628589p23816985.html
Sent from the Mono - OSX mailing list archive at Nabble.com.



More information about the Mono-osx mailing list