Class TreeViewNodeHolderView
[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
DataTemplatetreeView
TreeViewchildrenBinding
BindingBaseindentLevel
int
Fields
IsExpandedProperty
public static readonly BindableProperty IsExpandedProperty
Field Value
IsLeafProperty
public static readonly BindableProperty IsLeafProperty
Field Value
IsSelectedProperty
public static readonly BindableProperty IsSelectedProperty
Field Value
nodeChildren
protected VerticalStackLayout nodeChildren
Field Value
nodeContainer
protected TreeViewNodeItemContentView nodeContainer
Field Value
rowStack
protected Grid rowStack
Field Value
Properties
ChildrenBinding
public BindingBase ChildrenBinding { get; }
Property Value
DataTemplate
public DataTemplate DataTemplate { get; }
Property Value
IsExpanded
public bool IsExpanded { get; set; }
Property Value
IsLeaf
public bool IsLeaf { get; set; }
Property Value
IsSelected
public bool IsSelected { get; set; }
Property Value
NodeChildren
public VerticalStackLayout NodeChildren { get; }
Property Value
NodeView
public View NodeView { get; set; }
Property Value
ParentHolderView
public TreeViewNodeHolderView ParentHolderView { get; }
Property Value
TreeView
public TreeView TreeView { get; }
Property Value
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
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)