Skip to content

Commit 134e71c

Browse files
committed
Updated comments
1 parent 901fc13 commit 134e71c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

components/WrapPanel2/src/WrapPanel2.Properties.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ public Orientation Orientation
7373
/// <summary>
7474
/// Gets or sets the spacing between items.
7575
/// </summary>
76+
/// <remarks>
77+
/// When <see cref="ItemJustification"/> is enabled and <see cref="ItemsStretch"/> is <see cref="WrapPanelItemsStretch.None"/>,
78+
/// this may instead be used as the minimum space between items, while the exact spacing is adjusted to ensure the items span from margin to margin.
79+
/// </remarks>
7680
public double ItemSpacing
7781
{
7882
get => (double)GetValue(ItemSpacingProperty);

components/WrapPanel2/src/WrapPanel2.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ protected override Size MeasureOverride(Size availableSize)
3131
return new Size(0, 0);
3232
}
3333

34-
// Adjusted measuring will be required if fixed row lengths is enabled and
35-
// the StretchChildren is set to Equal. Condense this into a bool here.
34+
// Adjusted measuring will be required if items justification is enabled and
35+
// ItemsStreching is set to Equal. Condense this into a bool here.
3636
bool equalStretching = ItemJustification && ItemsStretch is WrapPanelItemsStretch.Equal;
3737

3838
foreach (var child in elements)
@@ -258,6 +258,9 @@ private static double GetStartByAlignment(Alignment alignment, double size, doub
258258
};
259259
}
260260

261+
/// <summary>
262+
/// Gets the the alignment panels horizontal/vertical alignment along the main axis.
263+
/// </summary>
261264
private Alignment GetAlignment()
262265
{
263266
return Orientation switch
@@ -282,6 +285,9 @@ private Alignment GetAlignment()
282285
};
283286
}
284287

288+
/// <summary>
289+
/// Gets the the alignment panels horizontal/vertical alignment along the off axis.
290+
/// </summary>
285291
private Alignment GetOffAlignment()
286292
{
287293
return Orientation switch

0 commit comments

Comments
 (0)