Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# PropertyPath

Tags:

c#

wpf

xaml

new PropertyPath("(RotateTransform.Angle)") 

why do we need the brackets around RotateTransform.Angle? And why sometimes we don't need brackets around it?

Cheers

like image 660
Marin Avatar asked Jul 07 '11 21:07

Marin


1 Answers

According to this: MSDN Binding.Path the brackets indicate that the path refers to an attached property. Since attached-properties are not declared on the dependency-object itself, the binding might need an indicator to distinct dependency-properties from attached properties.

/edit: sorry, gave you a german link, see my update.

like image 55
J. Tihon Avatar answered Sep 28 '22 04:09

J. Tihon