Skip to content

Commit

Permalink
Added back doc and removed regions.
Browse files Browse the repository at this point in the history
  • Loading branch information
m0lDaViA committed May 4, 2024
1 parent a35eb01 commit 4471cb9
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions src/Wpf.Ui/Controls/Arc/Arc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,28 @@
using System.Windows.Shapes;
using Point = System.Windows.Point;
using Size = System.Windows.Size;
#pragma warning disable SA1124
// ReSharper disable CheckNamespace

Check warning on line 10 in src/Wpf.Ui/Controls/Arc/Arc.cs

View workflow job for this annotation

GitHub Actions / build

#pragma warning disable CS0108

namespace Wpf.Ui.Controls;

/// <summary>
/// Control that draws a symmetrical arc with rounded edges.
/// </summary>
/// <example>
/// <code lang="xml">
/// &lt;ui:Arc
/// EndAngle="359"
/// StartAngle="0"
/// Stroke="{ui:ThemeResource SystemAccentColorSecondaryBrush}"
/// StrokeThickness="2"
/// Visibility="Visible" /&gt;
/// </code>
/// </example>
public class Arc : Shape
{
#region Declarations

private Viewbox? _rootLayout;

#endregion

#region Static Properties

/// <summary>Identifies the <see cref="StartAngle"/> dependency property.</summary>
public static readonly DependencyProperty StartAngleProperty = DependencyProperty.Register(
nameof(StartAngle),
Expand Down Expand Up @@ -56,10 +63,6 @@ public class Arc : Shape
new PropertyMetadata(PenLineCap.Round, PropertyChangedCallback)
);

#endregion

#region Public Properties

/// <summary>
/// Gets or sets the initial angle from which the arc will be drawn.
/// </summary>
Expand Down Expand Up @@ -98,10 +101,6 @@ public PenLineCap StrokeStartLineCap
/// </summary>
public bool IsLargeArc { get; internal set; } = false;

#endregion

#region Private Methods

private void EnsureRootLayout()
{
if (_rootLayout != null)
Expand All @@ -113,10 +112,6 @@ private void EnsureRootLayout()
AddVisualChild(_rootLayout);
}

#endregion

#region Protected Methods

/// <inheritdoc />
protected override Geometry DefiningGeometry => DefinedGeometry();

Expand Down Expand Up @@ -244,6 +239,4 @@ protected override void OnRender(DrawingContext drawingContext)

drawingContext.DrawGeometry(Stroke, pen, DefinedGeometry());
}

#endregion
}

0 comments on commit 4471cb9

Please sign in to comment.