File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 6
6
using Microsoft . UI . Windowing ;
7
7
using Microsoft . UI . Xaml . Controls ;
8
8
using Microsoft . UI . Xaml . Media . Animation ;
9
+ using Microsoft . Windows . ApplicationModel . Resources ;
9
10
using System ;
10
11
using System . IO ;
11
12
using System . Threading . Tasks ;
@@ -18,6 +19,12 @@ namespace Files.App.Helpers
18
19
{
19
20
public static class FilePropertiesHelpers
20
21
{
22
+ /// <summary>
23
+ /// Whether LayoutDirection (FlowDirection) is set to right-to-left (RTL)
24
+ /// </summary>
25
+ public static readonly bool FlowDirectionSettingIsRightToLeft =
26
+ new ResourceManager ( ) . CreateResourceContext ( ) . QualifierValues [ "LayoutDirection" ] == "RTL" ;
27
+
21
28
private static readonly bool isUniversal =
22
29
ApiInformation . IsApiContractPresent ( "Windows.Foundation.UniversalApiContract" , majorVersion : 8 ) ;
23
30
You can’t perform that action at this time.
0 commit comments