Node Images

2 posts, 0 answers
  1. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 27 Dec 2008 Link to this post

    Hi..
    Doe the TreeView support node images like the Telerik.WinControls.UI.RadTreeView ?
    thanks in advance
  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 29 Dec 2008 Link to this post

    Hello Jon,

    Yes, you can add images to RadTreeView nodes in WPF as well. You can use the DefaultImageSrc and ExpandedImageSrc properties of RadTreeViewItem like this:

                <telerik:RadTreeViewItem Header="Item1" DefaultImageSrc="Add.png" 
                        ExpandedImageSrc="close.png"
     

    Please find a sample test WPF application attached.

    Greetings,
    Konstantin Petkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top