Skip to content

Commit 75d5cbe

Browse files
committed
chore: Rename InverseStackPanel to ReversibleStackPanel.
1 parent be9525c commit 75d5cbe

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/Shared/HandyControl_Shared/Controls/Growl/Growl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ private static void Show(GrowlInfo growlInfo)
420420
var transitionMode = GetTransitionMode(GrowlPanel);
421421
GrowlPanel.VerticalAlignment = GetPanelVerticalAlignment(transitionMode);
422422
GrowlPanel.HorizontalAlignment = GetPanelHorizontalAlignment(transitionMode);
423-
GrowlPanel.SetValue(InverseStackPanel.IsInverseEnabledProperty,
423+
GrowlPanel.SetValue(ReversibleStackPanel.ReverseOrderProperty,
424424
transitionMode is TransitionMode.Bottom2Top or TransitionMode.Bottom2TopWithFade);
425425
}
426426
}
@@ -442,7 +442,7 @@ private static Panel CreateDefaultPanel()
442442
return null;
443443
}
444444

445-
var panel = new InverseStackPanel();
445+
var panel = new ReversibleStackPanel();
446446

447447
InitGrowlPanel(panel);
448448
SetIsCreatedAutomatically(panel, true);

src/Shared/HandyControl_Shared/Controls/Growl/GrowlWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal GrowlWindow()
1717
AllowsTransparency = true;
1818

1919
Growl.SetTransitionStoryboard(this, Growl.GetTransitionStoryboard(Application.Current.MainWindow));
20-
GrowlPanel = new InverseStackPanel();
20+
GrowlPanel = new ReversibleStackPanel();
2121
Content = new ScrollViewer
2222
{
2323
VerticalScrollBarVisibility = ScrollBarVisibility.Hidden,
@@ -42,7 +42,7 @@ internal void UpdatePosition(TransitionMode transitionMode)
4242
};
4343

4444
Growl.SetTransitionMode(this, transitionMode);
45-
GrowlPanel.SetValue(InverseStackPanel.IsInverseEnabledProperty,
45+
GrowlPanel.SetValue(ReversibleStackPanel.ReverseOrderProperty,
4646
transitionMode is TransitionMode.Bottom2Top or TransitionMode.Bottom2TopWithFade);
4747
}
4848

src/Shared/HandyControl_Shared/Controls/Panel/InverseStackPanel.cs renamed to src/Shared/HandyControl_Shared/Controls/Panel/ReversibleStackPanel.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44

55
namespace HandyControl.Controls;
66

7-
public class InverseStackPanel : SimpleStackPanel
7+
public class ReversibleStackPanel : SimpleStackPanel
88
{
9-
public static readonly DependencyProperty IsInverseEnabledProperty = DependencyProperty.Register(
10-
nameof(IsInversed), typeof(bool), typeof(InverseStackPanel),
11-
new FrameworkPropertyMetadata(ValueBoxes.TrueBox, FrameworkPropertyMetadataOptions.AffectsMeasure));
9+
public static readonly DependencyProperty ReverseOrderProperty = DependencyProperty.Register(
10+
nameof(ReverseOrder), typeof(bool), typeof(ReversibleStackPanel),
11+
new FrameworkPropertyMetadata(ValueBoxes.FalseBox, FrameworkPropertyMetadataOptions.AffectsMeasure));
1212

13-
public bool IsInversed
13+
public bool ReverseOrder
1414
{
15-
get => (bool) GetValue(IsInverseEnabledProperty);
16-
set => SetValue(IsInverseEnabledProperty, ValueBoxes.BooleanBox(value));
15+
get => (bool) GetValue(ReverseOrderProperty);
16+
set => SetValue(ReverseOrderProperty, ValueBoxes.BooleanBox(value));
1717
}
1818

1919
protected override Size ArrangeOverride(Size arrangeSize)
2020
{
21-
if (!IsInversed)
21+
if (!ReverseOrder)
2222
{
2323
return base.ArrangeOverride(arrangeSize);
2424
}

src/Shared/HandyControl_Shared/HandyControl_Shared.projitems

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<Compile Include="$(MSBuildThisFileDirectory)Controls\Panel\ClipGrid.cs" />
6666
<Compile Include="$(MSBuildThisFileDirectory)Controls\Panel\FlexPanel.cs" />
6767
<Compile Include="$(MSBuildThisFileDirectory)Controls\Panel\ElementGroup.cs" />
68-
<Compile Include="$(MSBuildThisFileDirectory)Controls\Panel\InverseStackPanel.cs" />
68+
<Compile Include="$(MSBuildThisFileDirectory)Controls\Panel\ReversibleStackPanel.cs" />
6969
<Compile Include="$(MSBuildThisFileDirectory)Controls\Panel\SimpleStackPanel.cs" />
7070
<Compile Include="$(MSBuildThisFileDirectory)Controls\Panel\UniformSpacingPanel.cs" />
7171
<Compile Include="$(MSBuildThisFileDirectory)Controls\PropertyGrid\Editors\ImagePropertyEditor.cs" />

0 commit comments

Comments
 (0)