Esempio n. 1
0
        private static void LinkAssemblies()
        {
            Xamarin.Forms.DependencyService.Register <ApplicationInfoService>();
            Xamarin.Forms.DependencyService.Register <DescendentBounds>();
            Xamarin.Forms.DependencyService.Register <InstalledFont>();
            Xamarin.Forms.DependencyService.Register <FontService>();
            Xamarin.Forms.DependencyService.Register <Forms9Patch.UWP.ToPngService>();
            Xamarin.Forms.DependencyService.Register <KeyboardService>();
            Xamarin.Forms.DependencyService.Register <OsInfoService>();
            Xamarin.Forms.DependencyService.Register <PrintService>();
            Xamarin.Forms.DependencyService.Register <Settings>();
            Xamarin.Forms.DependencyService.Register <PopupPlatformUWP>();
            Xamarin.Forms.DependencyService.Register <SharingService>();
            Xamarin.Forms.DependencyService.Register <ClipboardService>();

            if (false.Equals(true))
            {
                // Effects
                var e1 = new EmbeddedResourceFontEffect();
                var e2 = new SliderStepSizeEffect();

                // Hardware Key Listener
                var h1 = new HardwareKeyListenerEffect();
                var h2 = new HardwareKeyPageRenderer();

                // Popup
                var P1 = new PopupPageRenderer();

                // Renderers
                var r1 = new EnhancedListViewRenderer();
                var r2 = new LabeLRenderer();
            }
        }
Esempio n. 2
0
        private static void LinkAssemblies()
        {
            Xamarin.Forms.DependencyService.Register <ApplicationInfoService>();
            Xamarin.Forms.DependencyService.Register <DescendentBounds>();
            Xamarin.Forms.DependencyService.Register <InstalledFont>();
            Xamarin.Forms.DependencyService.Register <FontService>();
            Xamarin.Forms.DependencyService.Register <Forms9Patch.UWP.ToPngService>();
            Xamarin.Forms.DependencyService.Register <KeyboardService>();
            Xamarin.Forms.DependencyService.Register <OsInfoService>();
            Xamarin.Forms.DependencyService.Register <PrintService>();
            Xamarin.Forms.DependencyService.Register <Settings>();
            Xamarin.Forms.DependencyService.Register <PopupPlatformUWP>();
            Xamarin.Forms.DependencyService.Register <SharingService>();
            Xamarin.Forms.DependencyService.Register <ClipboardService>();

            if (false.Equals(true))
            {
                // Effects
                var e1 = new EmbeddedResourceFontEffect();
                var e2 = new SliderStepSizeEffect();
                var e3 = new HardwareKeyListenerEffect();

                // Renderers
                var r1 = new EnhancedListViewRenderer();
                var r2 = new LabeLRenderer();
                var r3 = new HardwareKeyPageRenderer();
                var r4 = new PopupPageRenderer();
                var r5 = new ColorGradientBoxRenderer();

                var p1 = new PopupPlatformUWP();

                // Services
                var s1 = new ApplicationInfoService();
                //var s2 = new AudioService();
                var s3 = new DescendentBounds();
                var s4 = new FontService();
                //var s5 = new HapticService();
                var s6 = new KeyboardService();
                var s7 = new OsInfoService();
                var s8 = new PrintService();
                //var s9 = new ToPdfService();
                var s10 = new ToPngService();
            }
        }