C# Класс Microsoft.Windows.Controls.PropertyHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
GetCoercedTransferPropertyValue ( DependencyObject baseObject, object baseValue, DependencyProperty baseProperty, DependencyObject parentObject, DependencyProperty parentProperty ) : object
GetCoercedTransferPropertyValue ( DependencyObject baseObject, object baseValue, DependencyProperty baseProperty, DependencyObject parentObject, DependencyProperty parentProperty, DependencyObject grandParentObject, DependencyProperty grandParentProperty ) : object

Computes the value of a given property based on the property transfer rules.

This is intended to be called from within the coercion of the baseProperty.

IsDefaultValue ( DependencyObject d, DependencyProperty dp ) : bool
TransferProperty ( DependencyObject d, DependencyProperty p ) : void

Causes the given DependencyProperty to be coerced in transfer mode.

This should be called from within the target object's NotifyPropertyChanged. It MUST be called in response to a change in the target property.

Приватные методы

Метод Описание
GetPropertyTransferEnabledMapForObject ( DependencyObject d ) : bool>.Dictionary
IsPropertyTransferEnabled ( DependencyObject d, DependencyProperty p ) : bool

Описание методов

GetCoercedTransferPropertyValue() публичный статический Метод

public static GetCoercedTransferPropertyValue ( DependencyObject baseObject, object baseValue, DependencyProperty baseProperty, DependencyObject parentObject, DependencyProperty parentProperty ) : object
baseObject System.Windows.DependencyObject
baseValue object
baseProperty System.Windows.DependencyProperty
parentObject System.Windows.DependencyObject
parentProperty System.Windows.DependencyProperty
Результат object

GetCoercedTransferPropertyValue() публичный статический Метод

Computes the value of a given property based on the property transfer rules.
This is intended to be called from within the coercion of the baseProperty.
public static GetCoercedTransferPropertyValue ( DependencyObject baseObject, object baseValue, DependencyProperty baseProperty, DependencyObject parentObject, DependencyProperty parentProperty, DependencyObject grandParentObject, DependencyProperty grandParentProperty ) : object
baseObject System.Windows.DependencyObject The target object which recieves the transferred property
baseValue object The baseValue that was passed into the coercion delegate
baseProperty System.Windows.DependencyProperty The property that is being coerced
parentObject System.Windows.DependencyObject The object that contains the parentProperty
parentProperty System.Windows.DependencyProperty A property who's value should be transfered (via coercion) to the baseObject if it has a higher precedence.
grandParentObject System.Windows.DependencyObject Same as parentObject but evaluated at a lower presedece for a given BaseValueSource
grandParentProperty System.Windows.DependencyProperty Same as parentProperty but evaluated at a lower presedece for a given BaseValueSource
Результат object

IsDefaultValue() публичный статический Метод

public static IsDefaultValue ( DependencyObject d, DependencyProperty dp ) : bool
d System.Windows.DependencyObject
dp System.Windows.DependencyProperty
Результат bool

TransferProperty() публичный статический Метод

Causes the given DependencyProperty to be coerced in transfer mode.
This should be called from within the target object's NotifyPropertyChanged. It MUST be called in response to a change in the target property.
public static TransferProperty ( DependencyObject d, DependencyProperty p ) : void
d System.Windows.DependencyObject The DependencyObject which contains the property that needs to be transfered.
p System.Windows.DependencyProperty The DependencyProperty that is the target of the property transfer.
Результат void