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. Image for the cookie policy date
close icon

LeftImageSource - How to use from code?

How can I set the LeftImageSource via code?

The following code does nothing and there does not seem to be any examples in VB or otherwise that shows the correct implementation of this.

Dim i As New Uri("/Images/Folder_Collapsed.png", UriKind.Relative)
Dim t As New TreeViewItemAdv
t.LeftImageSource = New Imaging.BitmapImage(i)
t.Header = "First Folder"
TreeView.Items.Add(t)



2 Replies

DP Dave Perkovich July 2, 2011 03:12 AM UTC

Wrong forum - this should be under Silverlight.



SK Sakthi Kumar A Syncfusion Team July 6, 2011 01:20 PM UTC

Hi Dave,

Thank you for using Syncfusion products.

We have created the sample for adding the leftimagesource to the TreeViewItemAdv. Please find the patch under the following location.

Please let us know if you have any queries.

Regards,
Sakthi



TreeViewAdvSilverCollapse_7e37679.zip

Loader.
Live Chat Icon For mobile
Up arrow icon