1

Is there any way to change Mahapps messagebox window (ShowMessageAsync)'s flow direction to Right to left ?

Hamed
  • 2,084
  • 6
  • 22
  • 42

2 Answers2

4

You can set the FlowDirection for the whole MetroWindow and all childrens.

FlowDirection="RightToLeft"

enter image description here

If you only want to set this to MessageDialog then you can change the style e.g. in your App.xaml like this

<Style TargetType="{x:Type Dialog:MessageDialog}"
        BasedOn="{StaticResource {x:Type Dialog:BaseMetroDialog}}">
    <Setter Property="FlowDirection" Value="RightToLeft" />
</Style>

So all message dialogs will get this style.

enter image description here

Hope this helps!

punker76
  • 14,326
  • 5
  • 58
  • 96
1

Overwriting the style should do it,

see: How to change MahApps.Metro dialog content template width?

The answer has a nice little tutorial.

Community
  • 1
  • 1
SilentStorm
  • 172
  • 1
  • 1
  • 12