We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set LeftImageSource from CodeBehind?

Thread ID:

Created:

Updated:

Platform:

Replies:

98063 Jan 31,2011 12:58 PM UTC Feb 2,2011 11:17 AM UTC WPF 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On January 31, 2011 12:58 PM UTC

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?


Mohana Sundari N [Syncfusion]
Replied On 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



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;