[]
        
(Showing Draft Content)

C1.Blazor.TreeView.C1TreeView

C1TreeView Class

Represents a control that displays hierarchical data in a tree structure that has items that can expand and collapse.

Inheritance
C1TreeView
Namespace: C1.Blazor.TreeView
Assembly: C1.Blazor.TreeView.dll
Syntax
public class C1TreeView : C1View, IComponent, IHandleAfterRender, IHandleEvent, IDisposable, IDependencyObject

Constructors

Name Description
C1TreeView()

Initializes a new instance of the C1TreeView class.

Fields

Name Description
AllowDragDropProperty

Identifies the AllowDragDrop dependency property.

ChildItemsPathsProperty

Identifies the ChildItemsPaths dependency property.

CollapseOnClickProperty

Identifies the CollapseOnClick dependency property.

CollapsedIconTemplateProperty

Identifies the CollapsedIconTemplate dependency property.

DisplayMemberPathsProperty

Identifies the DisplayMemberPaths dependency property.

DragSourceStyleProperty

Identifies the DragSourceStyle dependency property.

DragTargetStyleProperty

Identifies the DragTargetStyle dependency property.

ExpandModeProperty

Identifies the ExpandMode dependency property.

ExpandOnClickProperty

Identifies the ExpandOnClick dependency property.

ExpandedIconStyleProperty

Identifies the ExpandedIconStyle dependency property.

ExpandedIconTemplateProperty

Identifies the ExpandedIconTemplate dependency property.

HorizontalScrollBarVisibilityProperty

Identifies the HorizontalScrollBarVisibility dependency property.

IsExpandedPathProperty

Identifies the IsExpandedPath dependency property.

IsSelectedPathProperty

Identifies the IsSelectedPath dependency property.

ItemTemplateProperty

Identifies the ItemTemplate dependency property.

KeyboardNavigationProperty

Identifies the KeyboardNavigation dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

SelectionModeProperty

Identifies the SelectionMode dependency property.

ShowCheckboxesProperty

Identifies the ShowCheckboxes dependency property.

ShowLinesProperty

Identifies the ShowLines dependency property.

VerticalScrollBarVisibilityProperty

Identifies the VerticalScrollBarVisibility dependency property.

WholeWidthSelectionProperty

Identifies the WholeWidthSelection dependency property.

Properties

Name Description
AllowDragDrop

Gets or sets a value indicating whether this C1TreeView allows drag-and-drop operations.

ChildContent

ChildContent RenderFragment.

ChildItemsPaths
CollapseOnClick

Gets or sets a value indicating whether the node is collapsed when the users clicks in the C1TreeViewItem header.

CollapsedIconTemplate

Content template for tree item collapsed icon.

Converter

Converter for the Header property.

DisplayMemberPaths

Gets or sets a path to a value on the source object to serve as the visual representation of the object.

DragSourceStyle

Gets of sets the style of the drag source item.

DragTargetStyle

Gets of sets the style of the drag target item.

ExpandMode

Gets or sets a value indicating the allowed number of expanded C1TreeViewItems.

ExpandOnClick

Gets or sets a value indicating whether the node is expanded when the users clicks in the C1TreeViewItem header.

ExpandedIconStyle

Gets or sets the style applied to the expanded/collapsed icon.

ExpandedIconTemplate

Content template for tree item expanded icon.

HorizontalScrollBarVisibility
IsExpandedPath
IsRTL

Gets or sets the style of the selected items.

IsSelectedPath
ItemStyle

Gets or sets the style of the items.

ItemTemplate
Items

Gets the collection of tree-view items. Every tree-view items contains the sub-items.

ItemsSource

Gets or sets tree-view data source.

KeyboardNavigation

Enables or disables the Keyboard navigation functionality of the C1TreeView.

MouseOverBrush

Gets or sets the C1Color used to highlight the control when it has the mouse over.

OnDragOver

This Callback will gets and sets by Blazor framework automatically for binding feature.

OnDragStart

This Callback will gets and sets by Blazor framework automatically for binding feature.

OnDrop

This Callback will gets and sets by Blazor framework automatically for binding feature.

OnEnter

This Callback will gets and sets by Blazor framework automatically for binding feature.

OnEscape

This Callback will gets and sets by Blazor framework automatically for binding feature.

OnItemClick

Occurs when a TreeViewItem is clicked.

OnItemSelected

Occurs when the selection state of a TreeViewItem changes.

SelectedBackground

Gets or sets the C1Color used to highlight the control when it is selected.

SelectedItemStyle

Gets or sets the style of the selected items.

SelectionMode

Gets or sets the selection behavior for a C1TreeView.

SelectionModeChanged

Gets or sets the callback called when the SelectionMode property has changed.

ShowCheckboxes

Gets or sets the treeview item has show checkbox or not.

ShowLines

Gets or sets a value that indicates whether the connecting lines are visible.

VerticalScrollBarVisibility
WholeWidthSelection

Gets or sets whether the selection item should take the whole width of the control or not.

Methods

Name Description
BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

Dispose(bool)
Expand(TreeViewItem, bool)

Set expanded item

FocusAsync()

Sets the focus in the control.

GetAllItems()

Get all items

GetSelectedItems()

Get selected items

InitializeAsync()

This method is called when the component is initialized.

OnAfterRender(bool)
OnAfterRenderAsync(bool)
Refresh()

Refresh component.