Skip to content

How to set WPF WebView2 FlowDirection correctly? #1310

@Tennyleaz

Description

@Tennyleaz

I would like to set webview2 FlowDirection from right to left at some scenarios:

string localeName = ...
switch (localeName)
{
    default:
        myWebView2.FlowDirection = FlowDirection.LeftToRight;
        break;
    case "ar":
    case "fa":
    case "ps":
    case "ur":
        myWebView2.FlowDirection = FlowDirection.RightToLeft;
        break;
}

But the html display on my webview2 still always start from the left.
How could I set FlowDirection correctly?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions