Flexible TreeView Flexible TreeView


Support & Community

Node styles

Previous Table of Contents Next

Flexible TreeView allows you a great deal of flexibility when customizing node appearance in any state. You can change anything from color to image and edit control.

In Flexible TreeView, the visual appearance has many levels of inheritance. The very first level is the current theme manager`s settings, then it`s the treeview`s settings, then the node`s settings, and then the node control`s settings. Each level may be partially or fully overridden as described below.


Node.Style

The Style property contains a node`s style that, if defined, overrides all styles below.
You can easily combine the node`s style with the treeview`s style by using the Style.Weak node property. If it is enabled, the node style combines with the treeview style. If it is disabled, only the Style node property settings will be used as a node style.

A node has styles for these states:

  • Not selected – node isn`t selected.
  • Hot – node isn`t selected, but it is under the mouse cursor.
  • Soft selected – node isn`t selected, but it is under the mouse cursor and soft selection mode is enabled. Node is displayed as selected and may change appearance.
  • Selected – node is selected.
  • Focused – node is selected and has input focus.

and all of them may be overridden.


Not selected

When a node is first added to the treeview, it is in general state, i.e. isn`t selected or focused.
To control or override this state`s style use these properties:

  • Colors.Text treeview property.



Hot

When a node is under the mouse cursor, it is in Hot state.
To control or override this state`s style use these properties:

  • HotNodeStyle treeview property.



Soft selected

When a node is under the mouse cursor and soft selection mode is enabled, it is in soft selected state.
To control or override this state`s style use these properties:

  • SoftSelectedNodeStyle treeview property.



Selected

When a node is selected, it is in Selected state.
To control or override this state`s style use these properties:

  • SelectedNodeStyle treeview property.



Focused

When a node is selected and has input focus, it is in Focused state.
To control or override this state`s style use these properties:

  • FocusedNodeStyle treeview property.

Note that changes of the Images treeview property applies to all node states.

Previous Top Next


Last news
Bookmark and Share
Use Flexible TreeView in WPF project
Sunday, 18 December 2011

Do you have a WPF project and want to use Flexible TreeView there? No problem!

Flexible TreeView v3.4
Friday, 16 December 2011

Flexible TreeView v3.4 maintenance release has been released.

Flexible TreeView v3.3
Friday, 23 September 2011

Flexible TreeView v3.3 maintenance release has been released. Separate assemblies for .NET 2.0, 4.0 and 4.0 Client Profile, HTML markup extension, etc.

Latest release

Version:
Release date:
3.4
Dec 16, 2011


Copyright © 2006-2012 ARMSoft. All rights reserved.