From 8f97afda272fb15ce7d4deac7d9710c134158ac2 Mon Sep 17 00:00:00 2001 From: Yair Aichenbaum <39923744+yaichenbaum@users.noreply.github.com> Date: Wed, 30 Dec 2020 21:39:14 -0500 Subject: [PATCH] Fixed an issue where the properties window didn't support rtl languages --- Files/Views/Pages/Properties.xaml.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Files/Views/Pages/Properties.xaml.cs b/Files/Views/Pages/Properties.xaml.cs index feda600f4f28..a1b641cbd6fa 100644 --- a/Files/Views/Pages/Properties.xaml.cs +++ b/Files/Views/Pages/Properties.xaml.cs @@ -6,6 +6,7 @@ using System; using System.Threading; using Windows.ApplicationModel.Core; +using Windows.ApplicationModel.Resources.Core; using Windows.Foundation.Metadata; using Windows.System; using Windows.UI; @@ -36,6 +37,13 @@ public sealed partial class Properties : Page public Properties() { InitializeComponent(); + + var flowDirectionSetting = ResourceContext.GetForCurrentView().QualifierValues["LayoutDirection"]; + + if (flowDirectionSetting == "RTL") + { + FlowDirection = FlowDirection.RightToLeft; + } } protected override void OnNavigatedTo(NavigationEventArgs e)