How to set LeftImageSource from CodeBehind?

Hi there,

I tried to set the LeftImageSource of the TreeViewItemAdv from CodeBehind.
This is what I have tried:

LeftImageSource = "Folder_close_16x16-32.png";

I just get this error message:

An implicit conversion of the type "string" in "System.Windows.Media.ImageSource" is not possible.

What do I have to do?


1 Reply

MS Mohana Sundari N Syncfusion Team February 2, 2011 11:17 AM UTC

Hi Andreas Mahr,

You could set the LeftImageSource of the TreeViewAdv control from CodeBehind and we have attached a sample under the following location which illustrates this.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=TreeViewAdvSample1350844224.zip

Please let us know if you have any queries.

Thanks,
Mohana Sundari.N



Loader.
Up arrow icon