Hello.
I'm adding an image to my treeview using the "DefaultImagesSrc" property and the ImagesBaseDir property. The image displays, but significantly smaller than it should. I tried setting the height and width properties for the radtreeviewitem to be the size of the image but that didn't work. When I drop an image control onto the xaml and set it to the same image, it displays in the proper size. What am I doing wrong?
Again, if I create a standard image control and use the same image it displays using the proper size.
I'm adding an image to my treeview using the "DefaultImagesSrc" property and the ImagesBaseDir property. The image displays, but significantly smaller than it should. I tried setting the height and width properties for the radtreeviewitem to be the size of the image but that didn't work. When I drop an image control onto the xaml and set it to the same image, it displays in the proper size. What am I doing wrong?
<
telerik:RadTreeView
Height
=
"250"
HorizontalAlignment
=
"Left"
Margin
=
"12,32,0,0"
Name
=
"tvDirectories"
VerticalAlignment
=
"Top"
Width
=
"364"
ItemsSource
=
"{Binding ElementName=radTreeView1, Path=Background}"
ImagesBaseDir
=
"/UploadDocFromPDFWPF;component/Images/"
ItemPrepared
=
"radTreeView_ItemPrepared"
>
<
telerik:RadTreeViewItem
DefaultImageSrc
=
"mycomputer.png"
></
telerik:RadTreeViewItem
>
</
telerik:RadTreeView
>
Again, if I create a standard image control and use the same image it displays using the proper size.