TreeView not Working on RC0

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

Oct 1, 2008 at 12: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)
Coordinator
Oct 1, 2008 at 12:22 PM

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

 

Regards,

Alex

Oct 3, 2008 at 3:55 AM

Problem not in generic.xaml, but in

internal class TreeViewCheckBox

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

Coordinator
Oct 3, 2008 at 12:45 PM
Edited Oct 3, 2008 at 1:20 PM
Where did you got info about internal creation?
No, it is not because of internal class....
Oct 3, 2008 at 1: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--)
    to 
    for (num = base.Canvas.Children.Count - 1; num >= 0; num--)
3. In TreeViewCheckBox.cs, line 19 change
    internal class TreeViewCheckBox : ExtendedTextControl
    to
    public class TreeViewCheckBox : ExtendedTextControl

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

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

Regards,
Alex