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
bilik
bilik
Set selected node with the program Posted: Mar 06, 2010
 

Hi,


I want to set the selected node in my treeview by the programm. I tried the following:


testTree.SetSelected(testTree.Selected);


So just select the selected Node again to invoke the function private void Tree_NodeClick(object sender, TreeEventArgs e)


But I get the error: Message: Unhandled Error in Silverlight 2 Application Object reference not set to an instance of an object.   at SLApp2.MainPage.Tree_NodeClick(Object sender, TreeEventArgs e)   at Liquid.Tree.RaiseEvent(TreeEventHandler handler, Object sender, TreeEventArgs args)   at Liquid.Tree.set_Selected(Node value)   at Liquid.Tree.SetSelected(Node node)


Anbody an idea how to just invoke the Tree_NodeClick function again for the selected node?


bilik

 
 
dan
dan
RE: Set selected node with the program Posted: Mar 20, 2010
 

Hi Bilik,


You could try setting Selected = null before your call to SetSelected this should then raise the NodeClick event.


Thanks!

 
 
Bilik
Bilik
RE: Set selected node with the program Posted: Mar 23, 2010
 

Hi dan,


I tried the following:


Node selected = ProductTree.Selected;

ProductTree.Selected = null;

ProductTree.SetSelected(selected);


But I get the same error message as above. It seems that the Tree_NodeClick function does not get the parameters it needs.


Bilik

 
 
inexcon
inexcon
RE: Set selected node with the program Posted: Jan 25, 2011
 

Hi Dan,


Calling Tree.SetSelected(Node)


Raises the event "NodeClick"  Howerver, in the event, if you check the variable "e.Source" the source is Nothing. The source should be the "Node", because when the event is called by a mouse click, the "e.Source" is set.

 
 
dan
dan
RE: Set selected node with the program Posted: Feb 11, 2011
 

Hi inexcon,


Thanks for pointing that out.  I have made the change to the code and the fix will be present in the next version.


Thanks!

 
 
xarzu
xarzu
RE: Set selected node with the program Posted: Jun 08, 2011
 

Hi Dan,


This question is along these lines.


How do I send a click message to check the box of a specific node programatically?

 
 
xarzu
xarzu
RE: Set selected node with the program Posted: Jun 08, 2011
 

would it be something like this?


testTree.SelectChild("10");

                    Node selected = testTree.Selected;

                    selected.CheckAll();