C# Класс Catel.MVVM.Views.ViewExtensions

Показать файл Открыть проект

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

Метод Описание
EnsureVisualTree ( this view ) : void

Ensures that a visual tree exists for the view.

FindLogicalOrVisualAncestor ( this startElement, Predicate condition, int maxDepth = -1 ) : object

Finds the logical or visual ancestor according to the predicate.

FindParentByPredicate ( this view, Predicate predicate ) : UIView

Finds a parent by predicate. It first tries to find the parent via the UserControl.Parent property, and if that doesn't satisfy, it uses the UserControl.TemplatedParent property.

FindParentByPredicate ( this view, Predicate predicate, int maxDepth ) : UIView

Finds a parent by predicate. It first tries to find the parent via the UserControl.Parent property, and if that doesn't satisfy, it uses the UserControl.TemplatedParent property.

FindParentViewModelContainer ( this view ) : IViewModelContainer

Finds the parent view model container.

FindVisualAncestor ( this startElement, Predicate condition, int maxDepth = -1 ) : object

Finds the visual ancestor according to the predicate.

GetVisualParent ( this element ) : UIView

Gets the logical parent of the specified dependency object.

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

Метод Описание
FinalDispatch ( IView view, Action action ) : void

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

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

Ensures that a visual tree exists for the view.
public static EnsureVisualTree ( this view ) : void
view this The view.
Результат void

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

Finds the logical or visual ancestor according to the predicate.
public static FindLogicalOrVisualAncestor ( this startElement, Predicate condition, int maxDepth = -1 ) : object
startElement this The start element.
condition Predicate The condition.
maxDepth int The maximum number of levels to go up when searching for the parent. If smaller than 0, no maximum is used.
Результат object

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

Finds a parent by predicate. It first tries to find the parent via the UserControl.Parent property, and if that doesn't satisfy, it uses the UserControl.TemplatedParent property.
public static FindParentByPredicate ( this view, Predicate predicate ) : UIView
view this The control.
predicate Predicate The predicate.
Результат UIView

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

Finds a parent by predicate. It first tries to find the parent via the UserControl.Parent property, and if that doesn't satisfy, it uses the UserControl.TemplatedParent property.
public static FindParentByPredicate ( this view, Predicate predicate, int maxDepth ) : UIView
view this The control.
predicate Predicate The predicate.
maxDepth int The maximum number of levels to go up when searching for the parent. If smaller than 0, no maximum is used.
Результат UIView

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

Finds the parent view model container.
public static FindParentViewModelContainer ( this view ) : IViewModelContainer
view this The view.
Результат IViewModelContainer

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

Finds the visual ancestor according to the predicate.
public static FindVisualAncestor ( this startElement, Predicate condition, int maxDepth = -1 ) : object
startElement this The start element.
condition Predicate The condition.
maxDepth int The maximum number of levels to go up when searching for the parent. If smaller than 0, no maximum is used.
Результат object

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

Gets the logical parent of the specified dependency object.
The is null.
public static GetVisualParent ( this element ) : UIView
element this The element to retrieve the parent from.
Результат UIView