Class SimpleTreeView
Represents a simple tree view.
public class SimpleTreeView : BaseContentView, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout, IRaiseSystemColorsChanged, ITreeControlItemContainer
- Inheritance
-
SimpleTreeView
- Implements
Constructors
- SimpleTreeView()
Initializes a new instance of the SimpleTreeView class.
Fields
- DefaultItemContainerPadding
Default padding for the item container.
- DefaultItemImageMargin
Default margin for the item image.
- DefaultItemLabelMargin
Default margin for the item label.
- DefaultSvgSize
Default size of the SVG image.
- DefaultTreeButtonImageMargin
Default margin for the tree button image.
- DefaultTreeButtonSize
Default size of the tree button.
Properties
- RootItem
Gets or sets the root item of the tree view.
- SelectedItem
Gets or sets the selected item in the tree view.
- SelectedItems
Gets the selected items in the tree view.
- SelectionMode
Gets or sets the selection mode of the tree view.
- TreeButtons
Gets or sets the type of tree view buttons.
- VisibleItems
Gets the collection of expanded items in the tree view.
Methods
- Add(TreeControlItem, bool)
Adds the specified item to the tree view on the root level.
- AddChild(TreeControlItem?, TreeControlItem, bool)
Adds a child item to the specified parent item in the tree view.
- BeginUpdate()
Begins an update of the tree view. Call this method before making multiple changes to the tree view to prevent multiple refreshes.
- Clear()
Clears all items from the tree view.
- CreateItemTemplate()
Creates the item template for the tree view.
- EndUpdate()
Ends an update of the tree view. Call this method after making multiple changes to the tree view to refresh the view.
- GetLevelMargin()
Gets margin for each level in the tree.
- RaiseAfterCollapse(TreeControlItem)
Called after the tree item is collapsed.
- RaiseAfterExpand(TreeControlItem)
Called after the tree item is expanded.
- RaiseBeforeCollapse(TreeControlItem, ref bool)
Called before the tree item is collapsed.
- RaiseBeforeExpand(TreeControlItem, ref bool)
Called before the tree item is expanded.
- RaiseExpandedChanged(TreeControlItem)
Called after 'IsExpanded' property value of a tree item belonging to this tree view changes.
- RaiseItemAdded(TreeControlItem)
Called when an item is added to this tree view control, at any nesting level.
- RaiseItemRemoved(TreeControlItem)
Called when an item is removed from this tree view control, at any nesting level.
- RaiseSystemColorsChanged()
Updates visual style of the control when the system colors are changed.
- Remove(TreeControlItem?)
Removes the specified item (with sub-items) from the tree view.
- RemoveSelectedItem(bool)
Removes the currently selected item from the tree view.
- SelectItem(TreeControlItem)
Selects the specified item in the tree view and scrolls to it.
- SelectLastVisibleItem()
Selects the last visible item in the tree view and scrolls to it.
- TreeButtonsChanged()
Updates the tree view buttons when the TreeButtons property changes.
- TreeChanged()
Updates the tree view when the tree structure changes.
Events
- AfterCollapse
Occurs after the tree item is collapsed.
- AfterExpand
Occurs after the tree item is expanded.
- BeforeCollapse
Occurs before the tree item is collapsed. This event can be canceled.
- BeforeExpand
Occurs before the tree item is expanded. This event can be canceled.
- ExpandedChanged
Occurs after 'IsExpanded' property value of a tree item belonging to this tree view changes.
- ItemAdded
Occurs when an item is added to this tree view control, at any nesting level.
- ItemRemoved
Occurs when an item is removed from this tree view control, at any nesting level.
- SelectionChanged
Occurs when the SelectedItem property or the SelectedItems collection has changed.
- SelectionModeChanged
Occurs when the value of the SelectionMode property changes.