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

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -