Skip to content

Commit

Permalink
Fixed compile
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 committed May 23, 2024
1 parent 0e88612 commit 5119d72
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
18 changes: 13 additions & 5 deletions src/Files.App/Views/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,22 @@
Style="{StaticResource DefaultGridSplitterStyle}" />

<!-- Preview Pane -->
<uc:InfoPane
x:Name="PreviewPane"
<Border
x:Name="InfoPaneContainer"
Grid.Row="0"
Grid.Column="2"
HorizontalContentAlignment="Stretch"
x:Load="{x:Bind ViewModel.ShouldPreviewPaneBeActive, Mode=OneWay}"
Loaded="PreviewPane_Loaded"
Unloaded="PreviewPane_Unloaded" />
Background="{ThemeResource App.Theme.Toolbar.BackgroundBrush}"
BackgroundSizing="InnerBorderEdge"
BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}"
BorderThickness="1"
CornerRadius="8">
<uc:InfoPane
x:Name="PreviewPane"
HorizontalContentAlignment="Stretch"
Loaded="PreviewPane_Loaded"
Unloaded="PreviewPane_Unloaded" />
</Border>

<!-- Status Bar -->
<uc:StatusBar
Expand Down
8 changes: 4 additions & 4 deletions src/Files.App/Views/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ private void UpdatePositioning()
PaneColumn.Width = new GridLength(0);
break;
case PreviewPanePositions.Right:
PreviewPane.SetValue(Grid.RowProperty, 0);
PreviewPane.SetValue(Grid.ColumnProperty, 2);
InfoPaneContainer.SetValue(Grid.RowProperty, 0);
InfoPaneContainer.SetValue(Grid.ColumnProperty, 2);
PaneSplitter.SetValue(Grid.RowProperty, 0);
PaneSplitter.SetValue(Grid.ColumnProperty, 1);
PaneSplitter.Width = 2;
Expand All @@ -406,8 +406,8 @@ private void UpdatePositioning()
PaneRow.Height = new GridLength(0);
break;
case PreviewPanePositions.Bottom:
PreviewPane.SetValue(Grid.RowProperty, 2);
PreviewPane.SetValue(Grid.ColumnProperty, 0);
InfoPaneContainer.SetValue(Grid.RowProperty, 2);
InfoPaneContainer.SetValue(Grid.ColumnProperty, 0);
PaneSplitter.SetValue(Grid.RowProperty, 1);
PaneSplitter.SetValue(Grid.ColumnProperty, 0);
PaneSplitter.Height = 2;
Expand Down

0 comments on commit 5119d72

Please sign in to comment.