次の方法で共有


DependencyProperty Precedence(1)

You know that value of DependencyProperty may come from different sources and all there sources has some priority.

In this blog, I focus on the precedence list when calculating the value of DependencyProperty.

Highest precedence is listed first:
From msdn:
https://msdn.microsoft.com/en-us/library/ms743230.aspx

 

1 Property system coercion

2 Active animations or animations with a Hold behavior

3 Local value

4 TemplatedParent template properties

5 Implicit style

6 Style triggers

7 Template triggers

8 Style setters

9 Default(theme) style

10 Inheritance

11 Default value from dependency property metadata

In the next post, I will show some code to go deep.