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 66using Microsoft . UI . Windowing ;
77using Microsoft . UI . Xaml . Controls ;
88using Microsoft . UI . Xaml . Media . Animation ;
9+ using Microsoft . Windows . ApplicationModel . Resources ;
910using System ;
1011using System . IO ;
1112using System . Threading . Tasks ;
@@ -18,6 +19,12 @@ namespace Files.App.Helpers
1819{
1920 public static class FilePropertiesHelpers
2021 {
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+
2128 private static readonly bool isUniversal =
2229 ApiInformation . IsApiContractPresent ( "Windows.Foundation.UniversalApiContract" , majorVersion : 8 ) ;
2330
You can’t perform that action at this time.
0 commit comments