diff --git a/components/Sizers/src/ContentSizer/ContentSizer.cs b/components/Sizers/src/ContentSizer/ContentSizer.cs index 3de9fb05..fd527f68 100644 --- a/components/Sizers/src/ContentSizer/ContentSizer.cs +++ b/components/Sizers/src/ContentSizer/ContentSizer.cs @@ -9,4 +9,11 @@ namespace CommunityToolkit.WinUI.Controls; /// public partial class ContentSizer : SizerBase { + /// + /// Initializes a new instance of the class. + /// + public ContentSizer() + { + DefaultStyleKey = typeof(ContentSizer); + } } diff --git a/components/Sizers/src/GridSplitter/GridSplitter.Events.cs b/components/Sizers/src/GridSplitter/GridSplitter.Events.cs index ba40e784..999be72f 100644 --- a/components/Sizers/src/GridSplitter/GridSplitter.Events.cs +++ b/components/Sizers/src/GridSplitter/GridSplitter.Events.cs @@ -50,7 +50,7 @@ protected override bool OnDragVertical(double verticalChange) var currentChange = _currentSize + verticalChange; var siblingChange = _siblingSize + (verticalChange * -1); // sibling moves opposite - // Would changing the columnn sizes violate the constraints? + // Would changing the column sizes violate the constraints? if (!IsValidRowHeight(CurrentRow, currentChange) || !IsValidRowHeight(SiblingRow, siblingChange)) { return false; @@ -125,7 +125,7 @@ protected override bool OnDragHorizontal(double horizontalChange) var currentChange = _currentSize + horizontalChange; var siblingChange = _siblingSize + (horizontalChange * -1); // sibling moves opposite - // Would changing the columnn sizes violate the constraints? + // Would changing the column sizes violate the constraints? if (!IsValidColumnWidth(CurrentColumn, currentChange) || !IsValidColumnWidth(SiblingColumn, siblingChange)) { return false; diff --git a/components/Sizers/src/GridSplitter/GridSplitter.cs b/components/Sizers/src/GridSplitter/GridSplitter.cs index b52dfeea..1545f891 100644 --- a/components/Sizers/src/GridSplitter/GridSplitter.cs +++ b/components/Sizers/src/GridSplitter/GridSplitter.cs @@ -142,4 +142,12 @@ private RowDefinition? SiblingRow return null; } } + + /// + /// Initializes a new instance of the class. + /// + public GridSplitter() + { + DefaultStyleKey = typeof(GridSplitter); + } } diff --git a/components/Sizers/src/PropertySizer/PropertySizer.cs b/components/Sizers/src/PropertySizer/PropertySizer.cs index db6bd140..75d30252 100644 --- a/components/Sizers/src/PropertySizer/PropertySizer.cs +++ b/components/Sizers/src/PropertySizer/PropertySizer.cs @@ -9,4 +9,11 @@ namespace CommunityToolkit.WinUI.Controls; /// public partial class PropertySizer : SizerBase { + /// + /// Initializes a new instance of the class. + /// + public PropertySizer() + { + DefaultStyleKey = typeof(PropertySizer); + } } diff --git a/components/Sizers/src/SizerBase.cs b/components/Sizers/src/SizerBase.cs index 0cf9b01c..b1f62171 100644 --- a/components/Sizers/src/SizerBase.cs +++ b/components/Sizers/src/SizerBase.cs @@ -139,7 +139,7 @@ protected override void OnApplyTemplate() // Ensure we have the proper cursor value setup, as we can only set now for WinUI 3 OnOrientationPropertyChanged(this, null!); - // Ensure we set the Thumb visiblity + // Ensure we set the Thumb visibility OnIsThumbVisiblePropertyChanged(this, null!); } diff --git a/components/Sizers/src/SizerBase.xaml b/components/Sizers/src/SizerBase.xaml index fc306c7e..0d8ad301 100644 --- a/components/Sizers/src/SizerBase.xaml +++ b/components/Sizers/src/SizerBase.xaml @@ -41,12 +41,23 @@ ResourceKey="SystemColorButtonTextColorBrush" /> + 24 4 2 4 - +