Skip to content

Commit c34be8c

Browse files
author
Manisha Jha
committed
fix: set FlowDirection in XAML instead of code-behind
1 parent d9ace0e commit c34be8c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Files.App/Views/ReleaseNotesPage.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<!-- WebView -->
2222
<WebView2
2323
x:Name="BlogPostWebView"
24+
FlowDirection="LeftToRight"
2425
HorizontalAlignment="Stretch"
2526
VerticalAlignment="Stretch"
2627
CoreWebView2Initialized="BlogPostWebView_CoreWebView2Initialized"

src/Files.App/Views/ReleaseNotesPage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected override void OnNavigatedFrom(NavigationEventArgs e)
8383

8484
private async void BlogPostWebView_CoreWebView2Initialized(WebView2 sender, CoreWebView2InitializedEventArgs args)
8585
{
86-
sender.FlowDirection = FlowDirection.LeftToRight;
86+
8787

8888
sender.CoreWebView2.Profile.PreferredColorScheme = (CoreWebView2PreferredColorScheme)RootAppElement.RequestedTheme;
8989
sender.CoreWebView2.Settings.AreDefaultContextMenusEnabled = false;

0 commit comments

Comments
 (0)