Skip to content

Commit 98f69b5

Browse files
committed
Add 'this' keyword to DefaultStyleKey in ContentSizer and GridSplitter constructors, move constructor
1 parent 1f35755 commit 98f69b5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

components/Sizers/src/ContentSizer/ContentSizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ public partial class ContentSizer : SizerBase
1414
/// </summary>
1515
public ContentSizer()
1616
{
17-
DefaultStyleKey = typeof(ContentSizer);
17+
this.DefaultStyleKey = typeof(ContentSizer);
1818
}
1919
}

components/Sizers/src/GridSplitter/GridSplitter.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ public partial class GridSplitter : SizerBase
1212
private GridResizeDirection _resizeDirection;
1313
private GridResizeBehavior _resizeBehavior;
1414

15+
/// <summary>
16+
/// Initializes a new instance of the <see cref="GridSplitter"/> class.
17+
/// </summary>
18+
public GridSplitter()
19+
{
20+
this.DefaultStyleKey = typeof(GridSplitter);
21+
}
22+
1523
/// <summary>
1624
/// Gets the target parent grid from level
1725
/// </summary>
@@ -142,12 +150,4 @@ private RowDefinition? SiblingRow
142150
return null;
143151
}
144152
}
145-
146-
/// <summary>
147-
/// Initializes a new instance of the <see cref="GridSplitter"/> class.
148-
/// </summary>
149-
public GridSplitter()
150-
{
151-
DefaultStyleKey = typeof(GridSplitter);
152-
}
153153
}

0 commit comments

Comments
 (0)