Is there a reason that the Value property of the Setter class isnt the ContentProperty?

Hi guys,

I always seem to fuck this up over and over. I put

<Setter Property="Stuff"> <SomeOtherStuff/> </Setter> 

instead of

<Setter Property="Stuff"> <Setter.Value> <SomeOtherStuff/> </Setter.Value> </Setter> 

assuming that Value is the ContentProperty of Setter. I was wondering if there was some sort of performance reason that this is not the case, or if thats just the way it is. It seems like a logical place to use ContentProperty if you ask me, but maybe not.

Thanks!

by CCRed95 via /r/csharp

Leave a Reply