Skip to content

Commit

Permalink
fix StretchItems for GridDetailsView/VirtualizingWrapPanelWithItemExp…
Browse files Browse the repository at this point in the history
…ansion
  • Loading branch information
sbaeumlisberger committed Jan 25, 2024
1 parent eccd645 commit c100d42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ private Size CalculateChildArrangeSize(Size finalSize)
{
if (StretchItems)
{
if (Orientation == Orientation.Vertical)
if (Orientation == Orientation.Horizontal)
{
double childMaxWidth = ReadItemContainerStyle(MaxWidthProperty, double.PositiveInfinity);
double maxPossibleChildWith = finalSize.Width / itemsPerRowCount;
Expand Down

0 comments on commit c100d42

Please sign in to comment.