Why Dependency property are declared as static readonly?

后端 未结 3 2187
傲寒
傲寒 2021-02-20 09:41

It is clear to me why dependency property are static and the question still remain on my mind is why we need to use Readonly keyword at the time of declaration of Dependency Pro

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-20 10:09

    Because it makes it obvious, that the value of this property cannot be changed after initialization.

提交回复
热议问题