Automated dotnet-format update
This commit is contained in:
1 parent
ad4c2f68aa
commit
2af18c2d38
403 files changed
+1569
-1567
No files matched your search
@@ -8,6 +8,6 @@ namespace HandyControl.Interactivity
|
||||
{
|
||||
}
|
||||
|
||||
protected new T AssociatedObject => (T)base.AssociatedObject;
|
||||
protected new T AssociatedObject => (T) base.AssociatedObject;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -43,7 +43,7 @@ namespace HandyControl.Interactivity
|
||||
if (dependencyObject != null && !AssociatedType.IsInstanceOfType(dependencyObject))
|
||||
throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture,
|
||||
ExceptionStringTable.TypeConstraintViolatedExceptionMessage,
|
||||
new object[] {GetType().Name, dependencyObject.GetType().Name, AssociatedType.Name}));
|
||||
new object[] { GetType().Name, dependencyObject.GetType().Name, AssociatedType.Name }));
|
||||
WritePreamble();
|
||||
_associatedObject = dependencyObject;
|
||||
WritePostscript();
|
||||
@@ -84,4 +84,4 @@ namespace HandyControl.Interactivity
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,4 +39,4 @@ namespace HandyControl.Interactivity
|
||||
return new BehaviorCollection();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -111,7 +111,7 @@ namespace HandyControl.Interactivity
|
||||
{
|
||||
renderTransform = new TransformGroup
|
||||
{
|
||||
Children = {child.RenderTransform}
|
||||
Children = { child.RenderTransform }
|
||||
};
|
||||
child.RenderTransform = renderTransform;
|
||||
SetHasTransformWrapper(child, true);
|
||||
@@ -446,4 +446,4 @@ namespace HandyControl.Interactivity
|
||||
data.Timestamp = newTagData.Timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -193,4 +193,4 @@ namespace HandyControl.Interactivity
|
||||
public DateTime Timestamp { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -220,7 +220,7 @@ namespace HandyControl.Interactivity
|
||||
Y = transform5.Y
|
||||
};
|
||||
if (transform is MatrixTransform transform6)
|
||||
return new MatrixTransform {Matrix = transform6.Matrix};
|
||||
return new MatrixTransform { Matrix = transform6.Matrix };
|
||||
if (!(transform is TransformGroup group))
|
||||
return null;
|
||||
var group2 = new TransformGroup();
|
||||
@@ -349,4 +349,4 @@ namespace HandyControl.Interactivity
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,19 +37,19 @@ namespace HandyControl.Interactivity
|
||||
|
||||
public double X
|
||||
{
|
||||
get => (double)GetValue(MouseDragElementBehavior.XProperty);
|
||||
get => (double) GetValue(MouseDragElementBehavior.XProperty);
|
||||
set => SetValue(MouseDragElementBehavior.XProperty, value);
|
||||
}
|
||||
|
||||
public double Y
|
||||
{
|
||||
get => (double)GetValue(MouseDragElementBehavior.YProperty);
|
||||
get => (double) GetValue(MouseDragElementBehavior.YProperty);
|
||||
set => SetValue(MouseDragElementBehavior.YProperty, value);
|
||||
}
|
||||
|
||||
public bool ConstrainToParentBounds
|
||||
{
|
||||
get => (bool)GetValue(MouseDragElementBehavior.ConstrainToParentBoundsProperty);
|
||||
get => (bool) GetValue(MouseDragElementBehavior.ConstrainToParentBoundsProperty);
|
||||
set => SetValue(MouseDragElementBehavior.ConstrainToParentBoundsProperty, ValueBoxes.BooleanBox(value));
|
||||
}
|
||||
|
||||
@@ -103,19 +103,19 @@ namespace HandyControl.Interactivity
|
||||
|
||||
private static void OnXChanged(object sender, DependencyPropertyChangedEventArgs args)
|
||||
{
|
||||
var dragElementBehavior = (MouseDragElementBehaviorEx)sender;
|
||||
dragElementBehavior.UpdatePosition(new Point((double)args.NewValue, dragElementBehavior.Y));
|
||||
var dragElementBehavior = (MouseDragElementBehaviorEx) sender;
|
||||
dragElementBehavior.UpdatePosition(new Point((double) args.NewValue, dragElementBehavior.Y));
|
||||
}
|
||||
|
||||
private static void OnYChanged(object sender, DependencyPropertyChangedEventArgs args)
|
||||
{
|
||||
var dragElementBehavior = (MouseDragElementBehaviorEx)sender;
|
||||
dragElementBehavior.UpdatePosition(new Point(dragElementBehavior.X, (double)args.NewValue));
|
||||
var dragElementBehavior = (MouseDragElementBehaviorEx) sender;
|
||||
dragElementBehavior.UpdatePosition(new Point(dragElementBehavior.X, (double) args.NewValue));
|
||||
}
|
||||
|
||||
private static void OnConstrainToParentBoundsChanged(object sender, DependencyPropertyChangedEventArgs args)
|
||||
{
|
||||
var dragElementBehavior = (MouseDragElementBehaviorEx)sender;
|
||||
var dragElementBehavior = (MouseDragElementBehaviorEx) sender;
|
||||
dragElementBehavior.UpdatePosition(new Point(dragElementBehavior.X, dragElementBehavior.Y));
|
||||
}
|
||||
|
||||
@@ -366,4 +366,4 @@ namespace HandyControl.Interactivity
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user