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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set LeftImageSource from CodeBehind?

Thread ID:





98063 Jan 31,2011 12:58 PM UTC Feb 2,2011 11:17 AM UTC WPF 1
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.


Please let us know if you have any queries.

Mohana Sundari.N


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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