Esempio n. 1
0
        public static void RegisterViewEngines(ViewEngineCollection engines)
        {
            var engine = new MobileCapableWebFormViewEngine();
            engine.DeviceFolders.Clear();
            engine.DeviceFolders.Add("Mozilla", "iPhone");
            engine.DeviceFolders.Add("Safari", "iPhone");
            engine.DeviceFolders.Add("Chrome", "iPhone");

            engines.Clear();
            engines.Add(engine);
        }
Esempio n. 2
0
        public static void RegisterViewEngines(ViewEngineCollection engines)
        {
            var engine = new MobileCapableWebFormViewEngine();

            engine.DeviceFolders.Clear();
            engine.DeviceFolders.Add("Mozilla", "iPhone");
            engine.DeviceFolders.Add("Safari", "iPhone");
            engine.DeviceFolders.Add("Chrome", "iPhone");

            engines.Clear();
            engines.Add(engine);
        }