Menu

i have a question, how do i use other icon?

2017-02-23
2017-02-23
  • dooyeoung.ryu

    dooyeoung.ryu - 2017-02-23

    first thank you for your project TreeViewAdv for .Net.

    it is better than the other treeview. it is very good.

    but i face to a problem. i want to use another icon like above picture.

    q1 . it usually use imagelist in c# basic treeview. so how do i use other icon in TreeViewAdv?

    q2. i want to add leaf node when create treemodel for treeview binding. "IsLeafe" property is readonly so i can not set isLeafe...

    i can not find example.

     

    Last edit: dooyeoung.ryu 2017-02-23
  • dooyeoung.ryu

    dooyeoung.ryu - 2017-02-23

    i find to use other icon

    1. Add a nodeicon to nodecontrols of treeviewadv.
    2. Add the image using for icon to resources of properties.
    3. Set the nodeicon displaydataproperty to "Image"
    4. In the source code, assign the image resource.
      node.Image = Resources.folder_page_white;
     

Log in to post a comment.