private static void Main() { // Tell CoreApplication to create a view instance through the factory. MyViewProviderFactory factory = new MyViewProviderFactory(); CoreApplication.Run(factory); }