Latest News

  • Super Tower Defense 2 Game
    Sep 03, 2010

    New to the games section is Super Tower Defense 2. Featuring more maps, new units and bigger explosions.

  • Super Cards Online Multiplayer Game
    Aug 13, 2010

    Released today in the games section is the new Super Cards multiplayer card game. The aim of the game is to get rid of all your playing cards before your opposition.

  • Silverlight Online Chat
    Jul 24, 2010

    Today we launch the new Silverlight Live Chat application demonstrating the Liquid RichTextBox and Emoticon replacements.

  • New Super Shoot Em Up 2 Game
    Jun 29, 2010

    Added to the Games section is the new Super Shoot 'Em Up 2 game. Take control of your tank with the aim to defeat the computer controlled opponents. Features all new weapons, levels and Battle Mode!

  • Silverlight 4 Controls V5.3.2 Released
    Jun 28, 2010

    This release contains several fixes raised in the forums.

saman
saman
How to bind Nodes dynamically to a Treeview? Posted: Apr 06, 2010
 

First of all, I would like to thank you for developing and sharing Treeview control. I really like this control. I would like to bind nodes(Defined in a XML file) to "testTree" Treeview dynamically from C# Code behind file. Could you please help me with sample code for this. Thank for time and consideration.


<liquidTreeView:Tree x:Name="testTree" Grid.Row="0" Grid.Column="0" BorderThickness="1" EnableLines="True" EnableDragAndDrop="False" Drop="Tree_Drop" SelectionChanged="Tree_NodeClick" NodeDoubleClick="Tree_NodeDoubleClick" NodeEdited="TestTree_NodeEdited">

 </liquidTreeView:Tree>


Thanks,


Prasantha

 
 
dan
dan
RE: How to bind Nodes dynamically to a Treeview? Posted: Apr 10, 2010
 

Hi,


The TreeView does not support data binding at this time.  To populate the treeview I suggest you see the examples here:


http://www.vectorlight.net/controls/tree_view.aspx


Thanks!

 
 
chad
chad
RE: How to bind Nodes dynamically to a Treeview? Posted: Jun 04, 2010
 

Is there any reason why databinding has not been implements? Are there plans to include databinding?  One reason that I ask is that I am working with a UI Designer who is using Blend 4 and we need to populate MockData for design purposes.  We are using a MVVM pattern and create a Design Time DataContext but since the Populate event must be fired to actually fill the tree the tree will never get filled in blend.  If "Nodes" was a Dependency Property then I could build the Nodes tree in the ViewModel and bind it for use in Blend.  Any thoughts?

 
 
dan
dan
RE: How to bind Nodes dynamically to a Treeview? Posted: Jun 05, 2010
 

Hi,


The main reason is time.  I maintain this library myself and do not have the time required to implement this.  The source code is available so if anyone would like to implement data binding.  As an alternative to your problem you could use the standard Silverlight TreeView if you want databinding support.


Thanks!

 
 

Rate this page: 

1 Star 2 Star 3 Star 4 Star 5 Star
1 Rating / 1.0 Average