This is a migrated thread and some comments may be shown as answers.

Multiple Image Indicators

1 Answer 45 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Don
Top achievements
Rank 1
Don asked on 28 Oct 2009, 04:21 PM
In Visul Studio (and if the Project is managed by Source control), the User gets to see two images 1) the locked Status and 2) the Project Item Icon (Please see attached Image). We need to do something similar in our application. How can we show two indicators to the user through images.  We are binding items to the Tree control through a datasource similar to your Data View Model Sample.

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 29 Oct 2009, 10:30 AM
Hello Don,

You need to define a DataTemplate for the TreeView item and to bind the images you need. Teh data template can be something this:
<DataTemplate>
   <StackPanel Orientation="Horisontal">
      <Image Source="{Binding ItemState}"/>
      <Image Source="{Binding Icon}"/>
      <TextBlock Text="{Binding Header}"/>
   </StackPanel>
</DataTemplate>

Please let us know if you need more help on that.

Best wishes,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
Don
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or