* TreeView.cs: in 4.0, checkbox renders the value of the current
node's ToolTip, if anything, and not Text.
svn path=/trunk/mcs/; revision=160055
2010-07-08 Marek Habersack <mhabersack@novell.com>
+ * TreeView.cs: in 4.0, checkbox renders the value of the current
+ node's ToolTip, if anything, and not Text.
+
* RepeatLayout.cs: added two new members, UnorderedList and
OrderedList (4.0)
if (node.ShowCheckBoxInternal) {
writer.AddAttribute (HtmlTextWriterAttribute.Name, ClientID + "_cs_" + node.Path);
writer.AddAttribute (HtmlTextWriterAttribute.Type, "checkbox", false);
-#if !NET_4_0
+#if NET_4_0
+ string str = node.ToolTip;
+ if (!String.IsNullOrEmpty (str))
+ writer.AddAttribute (HtmlTextWriterAttribute.Title, str);
+#else
writer.AddAttribute (HtmlTextWriterAttribute.Title, node.Text);
#endif
if (node.Checked)