Skip to main content

Microsoft Silverlight

Unanswered Question A single DoubleCollection for a number of StrokeDashArrays causes an exceptionRSS Feed

(0)

Grey Matter
Grey Matter

Member

Member

39 points

108 Posts

A single DoubleCollection for a number of StrokeDashArrays causes an exception

Hi!

Could anyone explain it to me?
If I create a single SolidColorBrush for a great number of Shapes it works OK, but if I create a single DoubleCollection for a number of shapes and set it to their StrokeDashArray it causes an exception or a strange behaviour. What it depends on?

GlitchSCG
GlitchSCG

Member

Member

111 points

37 Posts

Re: A single DoubleCollection for a number of StrokeDashArrays causes an exception

I experienced the exact same problem and resorted to creating a new instance of the DoubleCollection for each one.

Grey Matter
Grey Matter

Member

Member

39 points

108 Posts

Re: Re: A single DoubleCollection for a number of StrokeDashArrays causes an exception

 Yea, I too. But I simply wanted to know the reason, lets say from inside.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities