Reputation: 70337
In WPF and Silverilght, what are the rules for deciding if you inherit properties from the visual, declarative, or logical parent?
Upvotes: 1
Views: 175
Reputation: 62939
I must assume you meant property inheritance, because otherwise the question makes no sense: You don't use class inheritance from your visual/logical parent - you simply have a reference to that parent.
Inherited properties are inherited in the following priority order:
If none of these types of parents exist or have the value being inherited, the value is set using styles or defaults.
Upvotes: 2