public static IMauiHandlersCollection AddCompatibilityRenderer <TControlType, TRenderer>(this IMauiHandlersCollection handlersCollection)
            where TControlType : IView
        {
            handlersCollection.AddCompatibilityRenderer <TControlType, TControlType, TRenderer>();

            return(handlersCollection);
        }
Пример #2
0
        public static IMauiHandlersCollection AddCompatibilityRenderer <TControlType, TRenderer>(this IMauiHandlersCollection handlersCollection)
            where TControlType : IView
        {
            Hosting.MauiAppBuilderExtensions.CheckForCompatibility();
            handlersCollection.AddCompatibilityRenderer <TControlType, TControlType, TRenderer>();

            return(handlersCollection);
        }