In WPF, what is a TemplatedParent?

前端 未结 3 2122
小鲜肉
小鲜肉 2020-12-29 20:48

I\'m trying to understand RelativeSource binding but I can\'t find a definition for TemplatedParent. MSDN says:

\"Gets a static value that is used to

3条回答
  •  盖世英雄少女心
    2020-12-29 21:28

    Notice:

    TemplatedParent means Parent is Templated. Templated is passive voice in English. In other words, the parent element is applied with a Template. So in the template you can binding the parent's property easily.

提交回复
热议问题