aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/ResolvedIssuesView.xaml.cs
blob: 7825bf587bcfb0256daa4a1b6bd89979f19794e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Tango.MachineStudio.UI.Views
{
    /// <summary>
    /// Interaction logic for ResolvedBugsView.xaml
    /// </summary>
    public partial class ResolvedIssuesView : UserControl
    {
        public ResolvedIssuesView()
        {
            InitializeComponent();
        }
    }
}
ass="p">.Register("StartAngle", typeof(double), typeof(Arc), new PropertyMetadata(0.0)); public double EndAngle { get { return (double)GetValue(EndAngleProperty); } set { SetValue(EndAngleProperty, value); } } public static readonly DependencyProperty EndAngleProperty = DependencyProperty.Register("EndAngle", typeof(double), typeof(Arc), new PropertyMetadata(90.0)); protected override Geometry DefiningGeometry { get { double maxWidth = RenderSize.Width; double maxHeight = RenderSize.Height; double maxRadius = Math.Min(maxWidth, maxHeight) / 2.0; PolarPoint arcStart = new PolarPoint(maxRadius, StartAngle); PolarPoint arcFinish = new PolarPoint(maxRadius, EndAngle); StreamGeometry geom = new StreamGeometry(); using (StreamGeometryContext ctx = geom.Open()) { ctx.BeginFigure( new Point((maxWidth / 2.0) + arcStart.X, (maxHeight / 2.0) - arcStart.Y), false, false); ctx.ArcTo( new Point((maxWidth / 2.0) + arcFinish.X, (maxHeight / 2.0) - arcFinish.Y), new Size(maxRadius, maxRadius), 0.0, // rotationAngle EndAngle > 180 && StartAngle < 180 && (EndAngle - StartAngle) > 180, // greater than 180 deg? SweepDirection.Counterclockwise, true, // isStroked true); } geom.Transform = new RotateTransform((-90 + EndAngle) + StartAngle, maxWidth / 2, maxHeight / 2); return geom; } } } }