Vectorlight News

  • Chat App Converted to HTML and JQuery
    Sep 08, 2011

    Converted from Silverlight to HTML and Javascript/JQuery is the Vectorlight Chat App. Login using your Vectorlight password to chat using your username and avatar.

  • HTML5 iPhone,Android Big Guns Tower Defense
    Jul 02, 2011

    Big Guns has made the leap from Windows Phone 7 (XNA) to HTML5 so you can now play it on your iPhone, Android and other HTML5 compatible devices.

  • HTML5 Games - Word Poppers and Batty
    Jun 04, 2011

    As the take-up of HTML5 quickens (74% of users currently have a browser capable of HTML5 Canvas) we present two more games for both your browser and mobile.

  • Big Guns Tower Defense on Windows Phone 7
    May 06, 2011

    Coming soon to Windows Phone 7 is an XNA port of the popular Vectorlight tower defense game Super Tower Defense. Whilst retaining many of the graphical and gameplay features of the original Silverlight game.

  • Wakacube WP7 Update
    Apr 26, 2011

    Released to the Windows Phone 7 marketplace today is Version 1.1 of Wakacube the 3D physics game of skill. Included in the update are more levels (30 in total) and new mode Wakatime which generates random crate structures to keep players entertained long after the levels have been completed.

  • Home Page News
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: 

1 Star 2 Star 3 Star 4 Star 5 Star
5 Ratings / 2.8 Average