[Gtk-sharp-list] Windows theme not applied

D. Dobrev dpldobrev at yahoo.com
Sun Nov 30 09:51:55 EST 2008

Thank you for the fast response, Stifu. I used the following line of code to
try your test:

this.Title = IsMono().ToString();

and it displayed "False" in both cases, i.e the app doesn't use Mono on
Windows. Actually, I don't have Mono for Windows installed, only GTK#. The
problem is that this also happens with the GTK# (version 2.10) that is
supplied in the Mono Downloads section.

Stifu wrote:
> To me, it looks like the first screenshot uses MS .NET, while the second
> one uses Mono (thought I don't understand why it'd run Mono by default
> when simply launching a file from the explorer). You could make sure and
> find out which framework is used with a function like:
> public static bool IsMono()
> {
> 	if(Type.GetType("System.MonoType", false) != null)
> 	{
> 		return true;
> 	}
> 	return false;
> }
> Native Windows theming will be included in Mono 2.2, due out in
> December... So this should fix your problem, I think (unless it only
> concerns programs that use Windows.Forms and not GTK#? I don't know, I
> guess someone else could clear that up).

View this message in context: http://www.nabble.com/Windows-theme-not-applied-tp20758097p20758370.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

More information about the Gtk-sharp-list mailing list