C# Class XAMLMarkupExtensions.Base.ParentChangedNotifier

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

Méthodes publiques

Свойство Type Description
ParentProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode 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

Méthode Description
ParentChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs args ) : void

The callback for changes of the attached Parent property.

SetBinding ( ) : void

Method Details

Dispose() public méthode

Disposes all used resources of the instance.
public Dispose ( ) : void
Résultat void

GetParent() public static méthode

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

ParentChangedNotifier() public méthode

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.
Résultat System

SetParent() public static méthode

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.
Résultat 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
Résultat System.Windows.DependencyProperty