Table of Contents

Class TreeViewNodeHolderView

Namespace
UraniumUI.Material.Controls
Assembly
UraniumUI.Material.dll
[ContentProperty("NodeView")]
public class TreeViewNodeHolderView : VerticalStackLayout, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, IBindableLayout, IVisualTreeElement, IStackLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout
Inheritance
TreeViewNodeHolderView
Implements
Inherited Members
Extension Methods

Constructors

TreeViewNodeHolderView(DataTemplate, TreeView, BindingBase, int)

public TreeViewNodeHolderView(DataTemplate dataTemplate, TreeView treeView, BindingBase childrenBinding, int indentLevel = 0)

Parameters

dataTemplate DataTemplate
treeView TreeView
childrenBinding BindingBase
indentLevel int

Fields

IsExpandedProperty

public static readonly BindableProperty IsExpandedProperty

Field Value

BindableProperty

IsLeafProperty

public static readonly BindableProperty IsLeafProperty

Field Value

BindableProperty

IsSelectedProperty

public static readonly BindableProperty IsSelectedProperty

Field Value

BindableProperty

nodeChildren

protected VerticalStackLayout nodeChildren

Field Value

VerticalStackLayout

nodeContainer

protected TreeViewNodeItemContentView nodeContainer

Field Value

TreeViewNodeItemContentView

rowStack

protected Grid rowStack

Field Value

Grid

Properties

ChildrenBinding

public BindingBase ChildrenBinding { get; }

Property Value

BindingBase

DataTemplate

public DataTemplate DataTemplate { get; }

Property Value

DataTemplate

IsExpanded

public bool IsExpanded { get; set; }

Property Value

bool

IsLeaf

public bool IsLeaf { get; set; }

Property Value

bool

IsSelected

public bool IsSelected { get; set; }

Property Value

bool

NodeChildren

public VerticalStackLayout NodeChildren { get; }

Property Value

VerticalStackLayout

NodeView

public View NodeView { get; set; }

Property Value

View

ParentHolderView

public TreeViewNodeHolderView ParentHolderView { get; }

Property Value

TreeViewNodeHolderView

TreeView

public TreeView TreeView { get; }

Property Value

TreeView

Methods

AddSelectedResources(StatefulContentView)

protected virtual void AddSelectedResources(StatefulContentView button)

Parameters

button StatefulContentView

ApplyIsExpandedPropertyBindings()

public virtual void ApplyIsExpandedPropertyBindings()

ApplyIsLeafPropertyBindings()

public virtual void ApplyIsLeafPropertyBindings()

InitializeArrowExpander()

protected virtual View InitializeArrowExpander()

Returns

View

IsSelectedChanged()

protected virtual void IsSelectedChanged()

ItemClicked()

protected virtual void ItemClicked()

LoadChildrenIfNecessary()

protected virtual void LoadChildrenIfNecessary()

OnBindingContextChanged()

Invoked whenever the binding context of the View changes.

protected override void OnBindingContextChanged()

Remarks

This method can be overridden to add class handling for this event. Overrides must call the base method.

OnIsExpandedChanged(bool)

protected virtual void OnIsExpandedChanged(bool isExpanded)

Parameters

isExpanded bool

OnIsLeafChanged(bool?)

protected virtual void OnIsLeafChanged(bool? newValue)

Parameters

newValue bool?

OnSelectedItemChanged()

protected virtual void OnSelectedItemChanged()

OnSizeAllocated(double, double)

Method that is called when the size of the element is set during a layout cycle. Implement this method to add class handling for this event.

protected override void OnSizeAllocated(double width, double height)

Parameters

width double

The new width of the element.

height double

The new height of the element.