Renaming node looses font family, color and size of node’s t
Brought to you by:
agaman
Steps to reproduce:
1) Run sample application.
2) Navigate to “Simple Example” tab.
3) Expand root node.
4) Rename Child Node 0 to ”test”.
Expected result: the node is renamed and the font family, size and color are preserved.
Actual result: Font family, text size and color are reset to default for the renamed node.
In this sample, only node starting by "Child" are painted in red.
void _nodeTextBox_DrawText(object sender, DrawEventArgs e)
{
if ((e.Node.Tag as MyNode).Text.StartsWith("Child"))
{
e.TextColor = Color.Red;
e.Font = _childFont;
}
}
Expected result: OK