C# Class WPF.JoshSmith.Data.DataContextSpy

When added to an element's Resources collection it's DataContext property references the containing element's DataContext. This enables DependencyObjects not in the element tree to bind to the tree's DataContext.
Documentation: http://www.codeproject.com/KB/WPF/ArtificialInheritanceCxt.aspx
Inheritance: System.Windows.Freezable
Exibir arquivo Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Properties

Property Type Description
DataContextProperty System.Windows.DependencyProperty

Public Methods

Method Description
DataContextSpy ( ) : System

Initializes a new instance.

Protected Methods

Method Description
CreateInstanceCore ( ) : System.Windows.Freezable

Do not invoke.

Private Methods

Method Description
OnCoerceDataContext ( DependencyObject depObj, object value ) : object

Method Details

CreateInstanceCore() protected method

Do not invoke.
protected CreateInstanceCore ( ) : System.Windows.Freezable
return System.Windows.Freezable

DataContextSpy() public method

Initializes a new instance.
public DataContextSpy ( ) : System
return System

Property Details

DataContextProperty public_oe static_oe property

Represents the DataContext property.
public static DependencyProperty,System.Windows DataContextProperty
return System.Windows.DependencyProperty