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.

carawaydj
carawaydj
TreeView Node Icon from Code Question Posted: Jan 04, 2010
 

I'm building my tree entirely in code.  I cannot seem to add an icon to a node within code.  I tried

searchNode.Icon = "images/Find.png" but this does not work, even though I have a resource in that location.  I noticed in your TreeView demo you use the following string to identify the resource: "TreeView;component/images/doc.png".  I assume "TreeView" is the assembly name, but what does "component" signify?  I tried using this convention but with my assembly name with no success.


Thoughts?


Thanks,


David

 
 
dan
dan
RE: TreeView Node Icon from Code Question Posted: Jan 25, 2010
 

Hi David,


You are right the TreeView does refer to the assembly name.  You can also specify the url as simply "images/Find.png", bear in mind that this url is relative to the current namespace.  So if the class you are creating the node in exists in a namespace that is not the root namespace you will need to pre-pend "../" to the url.


If you still have problems with this could you email your project to support@vectorlight.net and I'll take a look.


Thanks!

 
 

Rate this page: 

1 Star 2 Star 3 Star 4 Star 5 Star
11 Ratings / 3.2 Average