C# Class XAMLMarkupExtensions.Base.ParentChangedNotifier

A class that helps listening to changes on the Parent property of FrameworkElement objects.
Inheritance: System.Windows.DependencyObject, IDisposable
Datei anzeigen Open project: MrCircuit/XAMLMarkupExtensions Class Usage Examples

Public Properties

Property Type Description
ParentProperty System.Windows.DependencyProperty

Public Methods

Method Description
Dispose ( ) : void

Disposes all used resources of the instance.

GetParent ( FrameworkElement element ) : FrameworkElement

Get method for the attached property.

ParentChangedNotifier ( FrameworkElement element, System.Action onParentChanged ) : System

Constructor.

SetParent ( FrameworkElement element, FrameworkElement value ) : void

Set method for the attached property.

Private Methods

Method Description
ParentChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs args ) : void

The callback for changes of the attached Parent property.

SetBinding ( ) : void

Method Details

Dispose() public method

Disposes all used resources of the instance.
public Dispose ( ) : void
return void

GetParent() public static method

Get method for the attached property.
public static GetParent ( FrameworkElement element ) : FrameworkElement
element System.Windows.FrameworkElement The target FrameworkElement object.
return System.Windows.FrameworkElement

ParentChangedNotifier() public method

Constructor.
public ParentChangedNotifier ( FrameworkElement element, System.Action onParentChanged ) : System
element System.Windows.FrameworkElement The element whose Parent property should be listened to.
onParentChanged System.Action The action that will be performed upon change events.
return System

SetParent() public static method

Set method for the attached property.
public static SetParent ( FrameworkElement element, FrameworkElement value ) : void
element System.Windows.FrameworkElement The target FrameworkElement object.
value System.Windows.FrameworkElement The target's parent FrameworkElement object.
return void

Property Details

ParentProperty public_oe static_oe property

An attached property that will take over control of change notification.
public static DependencyProperty,System.Windows ParentProperty
return System.Windows.DependencyProperty