TreeListView Expander Style Plus Minus

5 posts, 0 answers
  1. Manishkumar
    Manishkumar avatar
    240 posts
    Member since:
    Feb 2009

    Posted 09 Nov 2011 Link to this post

    Hello,

    I want to show Plus/Minus (+/-) in Expander button style in my TreeListView node.
    I want the TreeListView default  Office Blue style to remain as it is, just need to change the Expander style only. 

    I have tried many but unable to accomplish. Please suggest me a solution asap. Please find the screenshot
  2. Manishkumar
    Manishkumar avatar
    240 posts
    Member since:
    Feb 2009

    Posted 11 Nov 2011 Link to this post

    Can anybody help me with this asap
  3. UI for WPF is Visual Studio 2017 Ready
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 11 Nov 2011 Link to this post

    Hello Manishkumar,

    You can try to define a simple style targeting GridViewToggleButton and set its PresentationMode property to "PlusMinus". 

     

    Regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  5. Manishkumar
    Manishkumar avatar
    240 posts
    Member since:
    Feb 2009

    Posted 11 Nov 2011 Link to this post

    Can u please attach an example if any. I tried to google. but did not find the way..
  6. Manishkumar
    Manishkumar avatar
    240 posts
    Member since:
    Feb 2009

    Posted 14 Nov 2011 Link to this post

     

     

    I defined the style in Resource.
    <
    Style x:Key="PlusMinusButtonStyle" TargetType="telerik:GridViewToggleButton">

     

     

     

    <Setter Property="PresentationMode" Value="PlusMinus" />

     

     

     

    </Style>

     



    I implemented the style in TreeListView.

     

    HierarchyExpandButtonStyle = "{StaticResource PlusMinusButtonStyle}"

    Still it is not working. Can u please help me

     

Back to Top
UI for WPF is Visual Studio 2017 Ready