Latest News

  • Super Tower Defense Game
    Mar 10, 2010

    New to the games section is the new Super Tower Defense game. Defend your base from the ever advancing army of tanks, buggies...

  • New Rich Text Editor User Control
    Feb 19, 2010

    By popular request, here we present a re-usable User Control containing the Liquid RichTextBox along with the most common formatting functions included.

  • Silverlight 3 Controls V5.2.7 Released
    Feb 19, 2010

    This release includes several fixes for issues raised in the forum. The main improvement is to the RichTextBox which now provides access and methods to the document elements allowing...

  • Super Shoot Em Up Game
    Feb 04, 2010

    Added to the games section is the new Super Shoot 'Em Up game. Take control of a tank with your aim being to blow up your opposing tanks and collect all the powerups.

  • Silverlight 3 Controls V5.2.6 Released
    Feb 04, 2010

    This release includes some minor fixes for several forum posts. Please see the notes on the download page for full details on what has changed.

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!