optimized performance

This commit is contained in:
NaBian committed 2020-06-28 22:39:27 +08:00
1 parent c407997a3c
commit 3162267795
65 files changed
+168 -168

No files matched your search

@@ -79,7 +79,7 @@ namespace HandyControl.Interactivity
{
get =>
(bool) GetValue(FloatAboveProperty);
set => SetValue(FloatAboveProperty, value);
set => SetValue(FloatAboveProperty, ValueBoxes.BooleanBox(value));
}
public TagType InitialTag
@@ -283,7 +283,7 @@ namespace HandyControl.Interactivity
private static void SetHasTransformWrapper(DependencyObject obj, bool value)
{
obj.SetValue(HasTransformWrapperProperty, value);
obj.SetValue(HasTransformWrapperProperty, ValueBoxes.BooleanBox(value));
}
private static void SetOverlay(DependencyObject obj, object value)
@@ -46,7 +46,7 @@ namespace HandyControl.Interactivity
{
get =>
(bool) GetValue(IsActiveProperty);
set => SetValue(IsActiveProperty, value);
set => SetValue(IsActiveProperty, ValueBoxes.BooleanBox(value));
}
protected virtual bool ShouldSkipInitialLayout =>
@@ -27,9 +27,8 @@ namespace HandyControl.Interactivity
public bool ConstrainToParentBounds
{
get =>
(bool) GetValue(ConstrainToParentBoundsProperty);
set => SetValue(ConstrainToParentBoundsProperty, value);
get => (bool) GetValue(ConstrainToParentBoundsProperty);
set => SetValue(ConstrainToParentBoundsProperty, ValueBoxes.BooleanBox(value));
}
private Rect ElementBounds
@@ -50,7 +50,7 @@ namespace HandyControl.Interactivity
public bool ConstrainToParentBounds
{
get => (bool)GetValue(MouseDragElementBehavior.ConstrainToParentBoundsProperty);
set => SetValue(MouseDragElementBehavior.ConstrainToParentBoundsProperty, value);
set => SetValue(MouseDragElementBehavior.ConstrainToParentBoundsProperty, ValueBoxes.BooleanBox(value));
}
private Rect ElementBounds