How to invert the Arrow direction (not using FlowDirection)

3 posts, 1 answers
  1. shay
    shay avatar
    16 posts
    Member since:
    Jun 2015

    Posted 11 Aug 2016 Link to this post

     

    Hi,

    how to invert the Arrow direction >> to <<

    the property flowDirection isn't good for me because it's change all the inner controls directions

     

    Thanks

  2. Answer
    Martin Ivanov
    Admin
    Martin Ivanov avatar
    1329 posts

    Posted 15 Aug 2016 Link to this post

    Hi Shay,

    I guess you are talking about the minimize button of the outlookbar control. If so, you can change its direction by extracting the ControlTemplate of the button and changing the geometry of the Path element that represents the arrow. 

    Here is the original XAML of the Path element:
    <!-- the other part of the template -->
    <Path x:Name="arrow" Data="M0,0L0.67,0 4,2.67 7.25,0 8,0 8,0.67 4,4 0,0.75z"
          Fill="Black" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
          Height="4" Margin="{TemplateBinding Padding}" RenderTransformOrigin="0.5,0.5" Stretch="Fill"
          VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Width="8">
        <Path.RenderTransform>
            <RotateTransform Angle="90"/>
        </Path.RenderTransform>
    </Path>
    <!-- the other part of the template -->
    After you edit the default button style you can re-apply it through the MinimizeButtonStyle property of RadOutlookBar.

    Regards,
    Martin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. shay
    shay avatar
    16 posts
    Member since:
    Jun 2015

    Posted 15 Aug 2016 in reply to Martin Ivanov Link to this post

    Thanks a lot for the replay
Back to Top