Exemplo n.º 1
0
        public static IMauiHandlersCollection AddCompatibilityRenderer(this IMauiHandlersCollection handlersCollection, Type controlType, Type rendererType)
        {
            FormsCompatBuilder.AddRenderer(controlType, rendererType);

            handlersCollection.AddHandler(controlType, typeof(RendererToHandlerShim));

            return(handlersCollection);
        }
Exemplo n.º 2
0
        public static IMauiHandlersCollection AddCompatibilityRenderer <TControlType, TMauiType, TRenderer>(this IMauiHandlersCollection handlersCollection)
            where TMauiType : IFrameworkElement
        {
            FormsCompatBuilder.AddRenderer(typeof(TControlType), typeof(TRenderer));

            handlersCollection.AddHandler <TMauiType, RendererToHandlerShim>();

            return(handlersCollection);
        }