Lottie-Windows icon indicating copy to clipboard operation
Lottie-Windows copied to clipboard

GenerateDependencyObject bug

Open HppZ opened this issue 3 years ago • 2 comments

.\LottieGen.exe -Language cs -GenerateColorBindings -GenerateDependencyObject -WinUIVersion 2.7 -OutputFolder output\ -InputFile

when -GenerateDependencyObject is set, public void SetColorProperty(string propertyName, Color value) is not right. image

HppZ avatar Feb 21 '22 08:02 HppZ

Have you tried -WinUIVersuin 2.6? There could be a bug with 2.7 version in LottieGen, I will take a look.

aborziak-ms avatar Feb 22 '22 20:02 aborziak-ms

Have you tried -WinUIVersuin 2.6?

No, please fix it.

HppZ avatar Feb 23 '22 11:02 HppZ

Confirmed the issue is still there when running with WinUI version 2.6, 2.7, or 2.8. The workaround is easy, just remove the _theme prefix. For example, _themeColor_XXXXXX should be renamed to Color_XXXXXX.

huynhsontung avatar Oct 22 '23 01:10 huynhsontung

Fixed in #548

aborziak-ms avatar Feb 27 '24 18:02 aborziak-ms