Automated dotnet-format update
This commit is contained in:
1 parent
ad4c2f68aa
commit
2af18c2d38
403 files changed
+1569
-1567
No files matched your search
@@ -339,7 +339,7 @@ namespace HandyControl.Expression.Media
|
||||
figure = new PathFigure();
|
||||
CachedGeometry = new PathGeometry
|
||||
{
|
||||
Figures = {figure}
|
||||
Figures = { figure }
|
||||
};
|
||||
figure.Segments.Add(segment = new ArcSegment());
|
||||
figure.IsClosed = false;
|
||||
@@ -371,7 +371,7 @@ namespace HandyControl.Expression.Media
|
||||
figure = new PathFigure();
|
||||
CachedGeometry = new PathGeometry
|
||||
{
|
||||
Figures = {figure}
|
||||
Figures = { figure }
|
||||
};
|
||||
figure.Segments.Add(segment = new ArcSegment());
|
||||
figure.Segments.Add(segment2 = new LineSegment());
|
||||
@@ -467,4 +467,4 @@ namespace HandyControl.Expression.Media
|
||||
return flag | geometry.SetIfDifferent(LineGeometry.EndPointProperty, point2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,4 +8,4 @@ namespace HandyControl.Expression.Media
|
||||
|
||||
public DrawingPropertyMetadata Metadata { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,8 @@ namespace HandyControl.Expression.Media
|
||||
|
||||
static DrawingPropertyMetadata()
|
||||
{
|
||||
DrawingPropertyChanged += delegate (object sender, DrawingPropertyChangedEventArgs args) {
|
||||
DrawingPropertyChanged += delegate (object sender, DrawingPropertyChangedEventArgs args)
|
||||
{
|
||||
if ((sender is IShape shape) && args.Metadata.AffectsRender)
|
||||
{
|
||||
InvalidateGeometryReasons reasons = InvalidateGeometryReasons.PropertyChanged;
|
||||
@@ -36,7 +37,7 @@ namespace HandyControl.Expression.Media
|
||||
{
|
||||
}
|
||||
|
||||
private DrawingPropertyMetadata(DrawingPropertyMetadataOptions options, object defaultValue) : base(defaultValue, (FrameworkPropertyMetadataOptions)options)
|
||||
private DrawingPropertyMetadata(DrawingPropertyMetadataOptions options, object defaultValue) : base(defaultValue, (FrameworkPropertyMetadataOptions) options)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -44,7 +45,7 @@ namespace HandyControl.Expression.Media
|
||||
{
|
||||
}
|
||||
|
||||
public DrawingPropertyMetadata(object defaultValue, DrawingPropertyMetadataOptions options, PropertyChangedCallback propertyChangedCallback) : base(defaultValue, (FrameworkPropertyMetadataOptions)options, AttachCallback(defaultValue, options, propertyChangedCallback))
|
||||
public DrawingPropertyMetadata(object defaultValue, DrawingPropertyMetadataOptions options, PropertyChangedCallback propertyChangedCallback) : base(defaultValue, (FrameworkPropertyMetadataOptions) options, AttachCallback(defaultValue, options, propertyChangedCallback))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -73,4 +74,4 @@ namespace HandyControl.Expression.Media
|
||||
propertyChangedCallback?.Invoke(sender, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,4 +9,4 @@ namespace HandyControl.Expression.Media
|
||||
AffectsRender = 0x10,
|
||||
None = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,7 @@ namespace HandyControl.Expression.Media
|
||||
static GeometryEffect()
|
||||
{
|
||||
DrawingPropertyMetadata.DrawingPropertyChanged +=
|
||||
delegate(object sender, DrawingPropertyChangedEventArgs args)
|
||||
delegate (object sender, DrawingPropertyChangedEventArgs args)
|
||||
{
|
||||
if (sender is GeometryEffect effect && args.Metadata.AffectsRender)
|
||||
effect.InvalidateGeometry(InvalidateGeometryReasons.PropertyChanged);
|
||||
@@ -169,4 +169,4 @@ namespace HandyControl.Expression.Media
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -56,4 +56,4 @@ namespace HandyControl.Expression.Media
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -85,4 +85,4 @@ namespace HandyControl.Expression.Media
|
||||
|
||||
protected abstract bool UpdateCachedGeometry(TParameters parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,4 +10,4 @@
|
||||
|
||||
double StartAngle { get; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14,4 +14,4 @@ namespace HandyControl.Expression.Media
|
||||
|
||||
Rect LogicalBounds { get; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,4 +28,4 @@ namespace HandyControl.Expression.Media
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,4 +10,4 @@ namespace HandyControl.Expression.Media
|
||||
|
||||
double StrokeThickness { get; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,4 +22,4 @@ namespace HandyControl.Expression.Media
|
||||
|
||||
double StrokeThickness { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,4 +11,4 @@ namespace HandyControl.Expression.Media
|
||||
PropertyChanged = 1,
|
||||
TemplateChanged = 0x10
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -45,12 +45,12 @@ namespace HandyControl.Expression.Media
|
||||
{
|
||||
var startPoint = pathFigure.StartPoint;
|
||||
foreach (var iteratorVariable1 in pathFigure.AllSegments())
|
||||
foreach (var iteratorVariable2 in iteratorVariable1.PathSegment.GetSimpleSegments(
|
||||
iteratorVariable1.StartPoint))
|
||||
{
|
||||
yield return iteratorVariable2;
|
||||
startPoint = iteratorVariable2.Points.Last();
|
||||
}
|
||||
foreach (var iteratorVariable2 in iteratorVariable1.PathSegment.GetSimpleSegments(
|
||||
iteratorVariable1.StartPoint))
|
||||
{
|
||||
yield return iteratorVariable2;
|
||||
startPoint = iteratorVariable2.Points.Last();
|
||||
}
|
||||
|
||||
if (pathFigure.IsClosed) yield return SimpleSegment.Create(startPoint, pathFigure.StartPoint);
|
||||
}
|
||||
@@ -103,7 +103,7 @@ namespace HandyControl.Expression.Media
|
||||
var samplePoints = new List<Point>(sampleCount);
|
||||
var sampleNormals = new List<Vector>(sampleCount);
|
||||
var sampleIndex = 0;
|
||||
PolylineHelper.PathMarch(polyline, 0.0, 0.0, delegate(MarchLocation location)
|
||||
PolylineHelper.PathMarch(polyline, 0.0, 0.0, delegate (MarchLocation location)
|
||||
{
|
||||
if (location.Reason == MarchStopReason.CompletePolyline) return double.NaN;
|
||||
if (location.Reason != MarchStopReason.CompleteStep) return location.Remain;
|
||||
@@ -132,4 +132,4 @@ namespace HandyControl.Expression.Media
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,4 +5,4 @@
|
||||
Pixel,
|
||||
Percent
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user