示例#1
0
        public string GenerateCSharpCode()
        {
            if (LottieComposition == null)
            {
                return(null);
            }

            return(CSharpInstantiatorGenerator.CreateFactoryCode(
                       SuggestedClassName,
                       new (CompositionObject, uint)[] { (RootVisual, RequiredUapVersion) },
示例#2
0
        public string GenerateCSharpCode()
        {
            if (LottieComposition == null)
            {
                return(null);
            }

            return
                (CSharpInstantiatorGenerator.CreateFactoryCode(
                     SuggestedClassName,
                     RootVisual,
                     (float)LottieComposition.Width,
                     (float)LottieComposition.Height,
                     LottieComposition.Duration));
        }
示例#3
0
        public string GenerateCSharpCode()
        {
            if (LottieComposition == null)
            {
                return(null);
            }

            return(CSharpInstantiatorGenerator.CreateFactoryCode(
                       SuggestedClassName,
                       RootVisual,
                       (float)LottieComposition.Width,
                       (float)LottieComposition.Height,
                       LottieComposition.Duration,
                       disableFieldOptimization: false).csText);
        }