Επεξεργασία

Κοινή χρήση μέσω


InheritanceBehavior Enum

Definition

Indicates the current mode of lookup for property value inheritance, resource lookup, and RelativeSource FindAncestor lookup. A RelativeSource FindAncestor lookup occurs when a binding uses a RelativeSource that has its Mode property set to the FindAncestor value.

public enum class InheritanceBehavior
public enum InheritanceBehavior
type InheritanceBehavior = 
Public Enum InheritanceBehavior
Inheritance
InheritanceBehavior

Fields

Name Value Description
Default 0

Property value inheritance lookup will query the current element and continue walking up the element tree to the page root. A resource lookup will query through the current element and further.

SkipToAppNow 1

Property value inheritance lookup will not query the current element or any further. A resource lookup will not query the current element but will skip over to the application and then the theme dictionaries, rather than walking up the element tree toward the page root. A RelativeSource FindAncestor lookup will not query the current element or any further.

SkipToAppNext 2

Property value inheritance lookup will query the current element but not any further. A resource lookup will query the current element and will then skip over to the application and theme dictionaries, rather than walking up the element tree toward the page root.

SkipToThemeNow 3

Property value inheritance lookup will not query the current element or any further. A resource lookup will not query the current element but will skip over to the theme dictionaries, rather than walking up the element tree toward the page root, or checking application dictionaries. A RelativeSource FindAncestor lookup will not query the current element or any further.

SkipToThemeNext 4

Property value inheritance lookup will query the current element but not any further. A resource lookup will query the current element and will then skip over to the theme dictionaries, rather than walking up the element tree toward the page root, or checking application dictionaries.

SkipAllNow 5

Property value inheritance lookup, resource lookup, or RelativeSource FindAncestor lookup will not query the current element or any further.

SkipAllNext 6

Property value inheritance lookup or resource lookup will query the current element but not any further. A resource lookup will query the current element but not any further.

Applies to