Skip to content

Commit c9b6b40

Browse files
0x5bfaArlodotexe
authored andcommitted
Init
1 parent 5edd883 commit c9b6b40

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

components/Sizers/src/GridSplitter/GridSplitter.Events.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected override bool OnDragVertical(double verticalChange)
5050
var currentChange = _currentSize + verticalChange;
5151
var siblingChange = _siblingSize + (verticalChange * -1); // sibling moves opposite
5252

53-
// Would changing the columnn sizes violate the constraints?
53+
// Would changing the column sizes violate the constraints?
5454
if (!IsValidRowHeight(CurrentRow, currentChange) || !IsValidRowHeight(SiblingRow, siblingChange))
5555
{
5656
return false;
@@ -125,7 +125,7 @@ protected override bool OnDragHorizontal(double horizontalChange)
125125
var currentChange = _currentSize + horizontalChange;
126126
var siblingChange = _siblingSize + (horizontalChange * -1); // sibling moves opposite
127127

128-
// Would changing the columnn sizes violate the constraints?
128+
// Would changing the column sizes violate the constraints?
129129
if (!IsValidColumnWidth(CurrentColumn, currentChange) || !IsValidColumnWidth(SiblingColumn, siblingChange))
130130
{
131131
return false;

components/Sizers/src/SizerBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected override void OnApplyTemplate()
139139
// Ensure we have the proper cursor value setup, as we can only set now for WinUI 3
140140
OnOrientationPropertyChanged(this, null!);
141141

142-
// Ensure we set the Thumb visiblity
142+
// Ensure we set the Thumb visibility
143143
OnIsThumbVisiblePropertyChanged(this, null!);
144144
}
145145

components/Sizers/src/SizerBase.xaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,21 @@
4141
ResourceKey="SystemColorButtonTextColorBrush" />
4242
</ResourceDictionary>
4343
</ResourceDictionary.ThemeDictionaries>
44+
4445
<x:Double x:Key="SizerBaseThumbHeight">24</x:Double>
4546
<x:Double x:Key="SizerBaseThumbWidth">4</x:Double>
4647
<x:Double x:Key="SizerBaseThumbRadius">2</x:Double>
4748
<Thickness x:Key="SizerBasePadding">4</Thickness>
4849

49-
<Style TargetType="controls:SizerBase">
50+
<Style BasedOn="{StaticResource DefaultContentSizerStyle}"
51+
TargetType="controls:ContentSizer" />
52+
<Style BasedOn="{StaticResource DefaultGridSplitterStyle}"
53+
TargetType="controls:GridSplitter" />
54+
<Style BasedOn="{StaticResource DefaultPropertySizerStyle}"
55+
TargetType="controls:PropertySizer" />
56+
57+
<Style x:Key="DefaultSizerBaseStyle"
58+
TargetType="controls:SizerBase">
5059
<Setter Property="IsTabStop" Value="True" />
5160
<Setter Property="UseSystemFocusVisuals" Value="True" />
5261
<Setter Property="HorizontalAlignment" Value="Stretch" />
@@ -124,4 +133,16 @@
124133
</Setter>
125134
</Style>
126135

136+
<Style x:Key="DefaultContentSizerStyle"
137+
BasedOn="{StaticResource DefaultSizerBaseStyle}"
138+
TargetType="controls:ContentSizer" />
139+
140+
<Style x:Key="DefaultGridSplitterStyle"
141+
BasedOn="{StaticResource DefaultSizerBaseStyle}"
142+
TargetType="controls:GridSplitter" />
143+
144+
<Style x:Key="DefaultPropertySizerStyle"
145+
BasedOn="{StaticResource DefaultSizerBaseStyle}"
146+
TargetType="controls:PropertySizer" />
147+
127148
</ResourceDictionary>

0 commit comments

Comments
 (0)