Flexible TreeView Flexible TreeView


Support & Community

NodeProgressBar node control

Previous Table of Contents Next

NodeProgressBar node control lets you display a progress bar inside a treeview node.

NodeProgressBar node controls in action

To start using this node control, specify its size. To do that, use the node control`s Size property. By default, its value is 50x16 pixels.


Data binding

A progress bar has three parameters: progress value, minimum value, and maximum value.

NodeProgressBar node controls parameters

To bind these parameters to node class members, adjust the appropriate member names of the node via the ValueDataFieldName, ValueDataFieldName, and MaxValueDataFieldName node control properties, respectively.
ValueDataFieldName has a default value, ‘ProgressValue’, while MinValueDataFieldName and MaxValueDataFieldName have none.
If MinValueDataFieldName or MaxValueDataFieldName values aren`t set explicitly, the progress bar`s minimum value is 0, and the maximum value is 100.

Example:

// Custom node class with members for the progress bar node control.
class ProgressNode : Node
{
  public int Progress;
  public int MinValue;
  public int MaxValue;
 
  public ProgressNode(string pText) : base(pText)
  {
  }
}
 
// NodeProgressBar node control usage example.
NodeTextBox tb = new NodeTextBox();
tb.AttachTo(tree);
 
NodeProgressBar pb = new NodeProgressBar();
pb.ValueDataFieldName = "Progress";
pb.MinValueDataFieldName = "MinValue";
pb.MaxValueDataFieldName = "MaxValue";
pb.AttachTo(tree);
 
ProgressNode n = new ProgressNode("Operation progress:");
n.Progress = 80;
n.MinValue = 0;
n.MaxValue = 200;
n.AttachTo(tree);

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.