chore: misc modify.
This commit is contained in:
1 parent
eca5885fee
commit
a7f0a9f3ce
2 files changed
+5
-3
No files matched your search
@@ -52,7 +52,7 @@ public class WaterfallPanel : Panel
|
|||||||
set => SetValue(OrientationProperty, value);
|
set => SetValue(OrientationProperty, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
private int CaculateGroupCount(Orientation orientation, PanelUvSize size)
|
private int CalculateGroupCount(Orientation orientation, PanelUvSize size)
|
||||||
{
|
{
|
||||||
if (!AutoGroup)
|
if (!AutoGroup)
|
||||||
{
|
{
|
||||||
@@ -74,7 +74,7 @@ public class WaterfallPanel : Panel
|
|||||||
var orientation = Orientation;
|
var orientation = Orientation;
|
||||||
var uvConstraint = new PanelUvSize(orientation, finalSize);
|
var uvConstraint = new PanelUvSize(orientation, finalSize);
|
||||||
|
|
||||||
var groups = CaculateGroupCount(orientation, uvConstraint);
|
var groups = CalculateGroupCount(orientation, uvConstraint);
|
||||||
if (groups < 1)
|
if (groups < 1)
|
||||||
{
|
{
|
||||||
return finalSize;
|
return finalSize;
|
||||||
@@ -110,7 +110,7 @@ public class WaterfallPanel : Panel
|
|||||||
var orientation = Orientation;
|
var orientation = Orientation;
|
||||||
var uvConstraint = new PanelUvSize(orientation, constraint);
|
var uvConstraint = new PanelUvSize(orientation, constraint);
|
||||||
|
|
||||||
var groups = CaculateGroupCount(orientation, uvConstraint);
|
var groups = CalculateGroupCount(orientation, uvConstraint);
|
||||||
if (groups < 1)
|
if (groups < 1)
|
||||||
{
|
{
|
||||||
return constraint;
|
return constraint;
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ using System.Windows.Media;
|
|||||||
using System.Windows.Media.Animation;
|
using System.Windows.Media.Animation;
|
||||||
using HandyControl.Tools;
|
using HandyControl.Tools;
|
||||||
|
|
||||||
|
namespace HandyControl.Media.Animation;
|
||||||
|
|
||||||
public abstract class GeometryKeyFrame : Freezable, IKeyFrame
|
public abstract class GeometryKeyFrame : Freezable, IKeyFrame
|
||||||
{
|
{
|
||||||
internal double[] Numbers;
|
internal double[] Numbers;
|
||||||
|
|||||||
Reference in new issue
Block a user