microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.32k stars 677 forks source link

Cannot access color properties from ExpressionAnimation #9393

Open Youssef1313 opened 7 months ago

Youssef1313 commented 7 months ago

Describe the bug

var exp = _visual.Compositor.CreateExpressionAnimation("c1.R");
exp.SetColorParameter("c1", new() { R = 40 });
_visual.StartAnimation("TransformMatrix._42", exp);
An invalid subchannel was specified in the expression.

Steps to reproduce the bug

-

Expected behavior

No response

Screenshots

No response

NuGet package version

None

Windows version

No response

Additional context

No response

ChewWorker commented 6 months ago

It appears that you are defining a color animation and then trying to use that to transform a matrix component. That is not supported.

Youssef1313 commented 6 months ago

@ChewWorker It is not really about setting it to transform matrix. But just accessing color channels in general.

ChewWorker commented 4 months ago

@Youssef1313 I'm sorry I don't understand. If it's not really about the transform matrix, why does the repro have the transform matrix in it? Is there still a problem if you eliminate that line?