Hi there,
I want to add images to my TreeViewItems, but it does not work :(
I knew there are many Threads for this theme and I read many of them, but I found no answer which can help me.
I have just a simple .xaml with the Tree and 3 Items and a folder named "Icons" in the source-folder of my project.
What am I doing wrong?
I want to add images to my TreeViewItems, but it does not work :(
I knew there are many Threads for this theme and I read many of them, but I found no answer which can help me.
I have just a simple .xaml with the Tree and 3 Items and a folder named "Icons" in the source-folder of my project.
What am I doing wrong?
<Window x:Class="TreeViewTest.MainWindow" Title="MainWindow" Height="350" Width="525" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Icon="/TreeViewTest;component/ics.ico"> <Grid> <telerik:RadTreeView HorizontalAlignment="Left" Name="treeView1" VerticalAlignment="Top" IsLineEnabled="True" FontFamily="Arial" FontSize="10" ImagesBaseDir="/Icons/" IsDragPreviewEnabled="False"> <telerik:RadTreeViewItem Header="Global" DefaultImageSrc="Folder_16x16-32.png"> <telerik:RadTreeViewItem Header="Local 1" /> <telerik:RadTreeViewItem Header="Local 2" /> </telerik:RadTreeViewItem> </telerik:RadTreeView> </Grid></Window>