Silverlight change color custom control programatically
Posted
by Mayo
on Stack Overflow
See other posts from Stack Overflow
or by Mayo
Published on 2010-06-11T19:07:07Z
Indexed on
2010/06/11
19:23 UTC
Read the original article
Hit count: 153
c#
|Silverlight
Hi all,
I have this Ellipse which I turned into a custom control so i could animate it programatically. However I am having trouble changing it's color.
I know about changing a shapes color like this:
aRectangle.Fill = new SolidColorBrush(Colors.Blue);
However I cannot do this with a custom control.
Anyone know how? Thanks.
© Stack Overflow or respective owner