Skip to content

Commit 4e8ed94

Browse files
Apply suggestions from code review
Fix issue with third demo, just some translational typos.
1 parent 22826af commit 4e8ed94

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/WrapPanel2/src/WrapPanel2.Properties.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public partial class WrapPanel2
1010
/// An attached property for identifying the requested layout of a child within the panel.
1111
/// </summary>
1212
public static readonly DependencyProperty LayoutLengthProperty =
13-
DependencyProperty.Register(
13+
DependencyProperty.RegisterAttached(
1414
"LayoutLength",
1515
typeof(GridLength),
1616
typeof(WrapPanel2),
@@ -50,7 +50,7 @@ public partial class WrapPanel2
5050
nameof(ItemsJustification),
5151
typeof(WrapPanelItemsJustification),
5252
typeof(WrapPanel2),
53-
new PropertyMetadata(default(bool), OnPropertyChanged));
53+
new PropertyMetadata(default(WrapPanelItemsJustification), OnPropertyChanged));
5454

5555
/// <summary>
5656
/// Backing <see cref="DependencyProperty"/> for the <see cref="ItemsStretch"/> property.

0 commit comments

Comments
 (0)