Latest News

  • Super Tower Defense Game
    Mar 10, 2010

    New to the games section is the new Super Tower Defense game. Defend your base from the ever advancing army of tanks, buggies...

  • New Rich Text Editor User Control
    Feb 19, 2010

    By popular request, here we present a re-usable User Control containing the Liquid RichTextBox along with the most common formatting functions included.

  • Silverlight 3 Controls V5.2.7 Released
    Feb 19, 2010

    This release includes several fixes for issues raised in the forum. The main improvement is to the RichTextBox which now provides access and methods to the document elements allowing...

  • Super Shoot Em Up Game
    Feb 04, 2010

    Added to the games section is the new Super Shoot 'Em Up game. Take control of a tank with your aim being to blow up your opposing tanks and collect all the powerups.

  • Silverlight 3 Controls V5.2.6 Released
    Feb 04, 2010

    This release includes some minor fixes for several forum posts. Please see the notes on the download page for full details on what has changed.

EricSTremblay
EricSTremblay
Error with nodes name. Posted: Feb 03, 2010
 

Hi!


I have an error with the TreeView control.  If you build the tree and give a name to each item, then for some reason you want to rebuild the tree, you clear the nodes. You rebuild the tree (for a refresh).  Then you get many error, and Silverlight can become all white.  It seems there is an error when you clear a tree with node and you reuse the same name for another node.


I have example put this code in a button to refresh the treeview called T: If you refresh the tree and you try to expand the node you get errors.


        T.Nodes.Clear()


        Dim Node1 As New Liquid.Node

        Dim Node2 As New Liquid.Node

        Dim Node11 As New Liquid.Node


        T.Nodes.Add(Node1)

        T.Nodes.Add(Node2)

        Node1.Nodes.Add(Node11)


        Node1.Name = "A"

        Node2.Name = "B"

        Node11.Name = "AA"


        Node1.Title = "A"

        Node2.Title = "B"

        Node11.Title = "AA"

 
 
dan
dan
RE: Error with nodes name. Posted: Feb 06, 2010
 

Hi,


Thanks for this post.  I'm unable to reproduce the error you describe, can you provide a sample project showing this error?


A couple of points from looking at your code, instead of T.Nodes.Clear() use T.Clear().  The setting of the Name property in Silverlight has certain restrictions, please see the MSDN about these properties.


Thanks!

 
 
ericstremblay
ericstremblay
RE: Error with nodes name. Posted: Feb 22, 2010
 

OK, using T.Clear() instead of T.Nodes.Clear() fixed the issue in my application.  Thank you!!