C# Class Microsoft.Windows.Controls.PropertyHelper

Show file Open project: kasicass/kasicass

Public Methods

Method Description
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.

Private Methods

Method Description
GetPropertyTransferEnabledMapForObject ( DependencyObject d ) : bool>.Dictionary
IsPropertyTransferEnabled ( DependencyObject d, DependencyProperty p ) : bool

Method Details

GetCoercedTransferPropertyValue() public static method

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
return object

GetCoercedTransferPropertyValue() public static method

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
return object

IsDefaultValue() public static method

public static IsDefaultValue ( DependencyObject d, DependencyProperty dp ) : bool
d System.Windows.DependencyObject
dp System.Windows.DependencyProperty
return bool

TransferProperty() public static method

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.
return void