Skip to content

Commit

Permalink
Change how margin is applied to layout to make sure background image …
Browse files Browse the repository at this point in the history
…uses all height when using Details View Converter extension
  • Loading branch information
darklinkpower committed Oct 4, 2024
1 parent 26991ad commit fbe3421
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions source/Views/GridViewGameOverview.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<Setter.Value>
<ControlTemplate TargetType="{x:Type GridViewGameOverview}">
<Border Padding="10,0,5,10" BorderBrush="{DynamicResource PanelSeparatorBrush}"
Margin="{DynamicResource PanelTopPanelSeparator}"
d:DataContext="{x:Static DesignMainViewModel.DesignSelectedGameDetailsIntance}">
<Border.Style>
<Style TargetType="Border">
Expand Down
2 changes: 1 addition & 1 deletion source/Views/Library.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
Visibility="{Settings FilterPanelVisible}" />
<Grid DockPanel.Dock="Left">
<LibraryDetailsView x:Name="PART_ViewDetails" />
<LibraryGridView x:Name="PART_ViewGrid" Margin="{DynamicResource PanelTopPanelSeparator}" />
<LibraryGridView x:Name="PART_ViewGrid" />
<LibraryListView x:Name="PART_ViewList" Margin="{DynamicResource PanelTopPanelSeparator}" />
</Grid>
</DockPanel>
Expand Down
3 changes: 2 additions & 1 deletion source/Views/LibraryGridView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
<GridViewGameOverview x:Name="PART_ControlGameView"
Width="{Settings GrdiDetailsWitdh}"
DockPanel.Dock="{Settings GridViewDetailsPosition}" />
<Grid DockPanel.Dock="Left">
<Grid DockPanel.Dock="Left"
Margin="{DynamicResource PanelTopPanelSeparator}">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
Expand Down

0 comments on commit fbe3421

Please sign in to comment.