This is a migrated thread and some comments may be shown as answers.

How to invert the Arrow direction (not using FlowDirection)

2 Answers 60 Views
OutlookBar
This is a migrated thread and some comments may be shown as answers.
shay
Top achievements
Rank 1
shay asked on 11 Aug 2016, 08:18 AM

 

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 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 15 Aug 2016, 08:28 AM
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.
0
shay
Top achievements
Rank 1
answered on 16 Aug 2016, 04:51 AM
Thanks a lot for the replay
Tags
OutlookBar
Asked by
shay
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
shay
Top achievements
Rank 1
Share this question
or