|
NodeColorPicker node control
Saturday, 12 September 2009
NodeColorPicker allows you to show the Office2007 style color or color gradient picker from a node with a very useful live preview feature.
To select a solid color from the picker, add the NodeWithColor node instance to the treeview. It has the Color property of the System.Drawing.Color type where the selected color will be stored. Example: NodeTextBox tb = new NodeTextBox(); tb.AttachTo(tree); NodeColorPicker nc = new NodeColorPicker(); nc.AttachTo(tree); NodeWithColor node = new NodeWithColor("Select color"); // default color. node.Color = Color.Red; node.AttachTo(tree);
|
|