Latest News

  • 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.

  • New Sandmania Puzzle Game
    Jun 18, 2010

    Sandmania is the latest game from vectorlight, the aim of this game is to guide sand from the top of the screen to the various colored containers below.

  • New Moon Tower Defense Game
    May 29, 2010

    Added to the Games section is the new Moon Tower Defense game. Defend the Moon from the circling Aliens and Humans.

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