Change Expander on different ListItem Levels

5 posts, 1 answers
  1. Ryan Black
    Ryan Black avatar
    54 posts
    Member since:
    Mar 2010

    Posted 27 May 2010 Link to this post

    Hello,

    I have been playing around with this all day and have given up.
    Based off the level of the treeview, I would like to change the expander line color.   I tried to add a style to my ToggleButton x:Name="Expander" line in the RadTreeViewItem template figuring that would work but has no success.

    I so far have only been able to change the expander for the entire treeview in the main treeview control.

    Thanks for the help
    Ryan



  2. Adrian Pickering
    Adrian Pickering avatar
    4 posts
    Member since:
    Jan 2009

    Posted 01 Jun 2010 Link to this post

    Has anyone got any ideas on this?
  3. UI for WPF is Visual Studio 2017 Ready
  4. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 02 Jun 2010 Link to this post

    Hi Adrian Pickering,

    Please find attached a sample project that demonstrates how to have different item styles for each tree view level.
    I hope that this will help you.
     Please let us know if you have any other questions or need some more help.

    Kind regards,
    Bobi
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Ryan Black
    Ryan Black avatar
    54 posts
    Member since:
    Mar 2010

    Posted 02 Jun 2010 Link to this post

    Thanks for the example.

    I need to use an expander in my solution, which you changed to use a rectangle. Could you do an example with different Togglebuttons (Expanders) for each item level.

    Thanks again
    Ryan
  6. Answer
    Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 07 Jun 2010 Link to this post

    Hi Ryan Black,

    Please find attached a sample project.
    In it you can see how to implement the expand/collapsed functionality with different styles for each level (different ToggleButtons).
    I hope that this will help you. Please let us know if you have any other questions or need some more help.

    Best wishes,
    Bobi
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
UI for WPF is Visual Studio 2017 Ready