C# Класс XAMLMarkupExtensions.Base.ParentChangedNotifier

A class that helps listening to changes on the Parent property of FrameworkElement objects.
Наследование: System.Windows.DependencyObject, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ParentProperty System.Windows.DependencyProperty

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

Метод Описание
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.

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

Метод Описание
ParentChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs args ) : void

The callback for changes of the attached Parent property.

SetBinding ( ) : void

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

Dispose() публичный Метод

Disposes all used resources of the instance.
public Dispose ( ) : void
Результат void

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

Get method for the attached property.
public static GetParent ( FrameworkElement element ) : FrameworkElement
element System.Windows.FrameworkElement The target FrameworkElement object.
Результат System.Windows.FrameworkElement

ParentChangedNotifier() публичный Метод

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.
Результат System

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

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.
Результат void

Описание свойств

ParentProperty публичное статическое свойство

An attached property that will take over control of change notification.
public static DependencyProperty,System.Windows ParentProperty
Результат System.Windows.DependencyProperty