A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
608 B

namespace TestApplication
{
using Perspex;
using Perspex.Themes.Default;
#if PERSPEX_CAIRO
using Perspex.Cairo;
#else
using Perspex.Direct2D1;
#endif
#if PERSPEX_GTK
using Perspex.Gtk;
#else
using Perspex.Win32;
#endif
public class App : Application
{
public App()
: base(new DefaultTheme())
{
this.RegisterServices();
#if PERSPEX_CAIRO
CairoPlatform.Initialize();
#else
Direct2D1Platform.Initialize();
#endif
#if PERSPEX_GTK
GtkPlatform.Initialize();
#else
Win32Platform.Initialize();
#endif
}
}
}