This project is read-only.

TreeView not Working on RC0

Sep 27, 2008 at 3:37 AM
Any Ideas??
is not working the example or my project.
any workaround?? is somtthing of the generic.xaml ??

Oct 1, 2008 at 1:21 AM
the proble was the firts style of the generic.xaml (the one of the checkboxes), then there was an index problem when you open a leave of the tree, is solved with a -1 and > 0 (previous >= 0)
Oct 1, 2008 at 1:22 PM

Thanks, will fix the control to work under RC0/RTW in next few days.




Oct 3, 2008 at 4:55 AM

Problem not in generic.xaml, but in

internal class TreeViewCheckBox

Creation of internal class objects is disabled in RC0. Make it public. (И будет вам счастье.)

Oct 3, 2008 at 1:45 PM
Edited Oct 3, 2008 at 2:20 PM
Where did you got info about internal creation?
No, it is not because of internal class....
Oct 3, 2008 at 2:32 PM
Just trust me :)

There are only 4 things to make your 11-sep release work on Silverlight RC0:

1. Create folder named "themes" in your "TreeView" project and move generic.xaml to it.
2. In TreeViewNode.cs, line 1092 change
    for (num = base.Canvas.Children.Count; num >= 0; num--)
    for (num = base.Canvas.Children.Count - 1; num >= 0; num--)
3. In TreeViewCheckBox.cs, line 19 change
    internal class TreeViewCheckBox : ExtendedTextControl
    public class TreeViewCheckBox : ExtendedTextControl

4. In TreeViewCheckBox.cs, line 55 change
    this.OnMouseDown(this, new MouseButtonEventArgs());
    this.OnMouseDown(this, null);

Build, start, enjoy.
Oct 4, 2008 at 5:37 AM
Thanks, oldlaurel.
Used "2." and "3." from your solution, since "1." already did :)
There is new cange set, RC0 compatible.