Hamed
Hamed

Reputation: 2168

How to change ShowMessageAsync flow direction to "Right to Left"?

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

Upvotes: 1

Views: 743

Answers (2)

punker76
punker76

Reputation: 14621

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!

Upvotes: 4

SilentStorm
SilentStorm

Reputation: 170

Overwriting the style should do it,

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

The answer has a nice little tutorial.

Upvotes: 1

Related Questions