c# - Animate Property of Custom Class -
in uwp project, bind several elements on page various objects updated. 1 of these objects custom class attached dependencyproperty called background. background, in class, defined solidcolorbrush.
when animating background of element directly, say, button, use:
storyboard.settargetproperty(animation, "(button.background).(solidcolorbrush.color)");
so, when trying animate background property of custom class, write:
storyboard.settargetproperty(animation, "(myclass.background).(solidcolorbrush.color)");
this gives me error:
cannot resolve targetproperty (myclass.background).(solidcolorbrush.color)
how can correctly animate dependencyproperty of custom class?
Comments
Post a Comment