aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Versioning/GlobalVersionInfo.cs
blob: 3197405a9123b40ddb234e79d405e72f747f2d32 (plain)
1
2
3
4
5
6
7
8
9
10
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; 


[assembly: AssemblyProduct("Tango Core")] 

[assembly: AssemblyCompany("Twine")]
[assembly: AssemblyCopyright("Copyright © Twine LTD 2017")]
[assembly: AssemblyTrademark("Twine LTD")]
.se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
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.Touch.Controls
{
    public class TouchRingProgress : ProgressBar
    {
        private SharedUI.Shapes.Arc _arc;

        public double RingThickness
        {
            get { return (double)GetValue(RingThicknessProperty); }
            set { SetValue(RingThicknessProperty, value); }
        }
        public static readonly DependencyProperty RingThicknessProperty =
            DependencyProperty.Register("RingThickness", typeof(double), typeof(TouchRingProgress), new PropertyMetadata(3.0));

        static TouchRingProgress()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(TouchRingProgress), new FrameworkPropertyMetadata(typeof(TouchRingProgress)));
        }

        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            _arc = GetTemplateChild("PART_Arc") as SharedUI.Shapes.Arc;
            SetArc();
        }

        protected override void OnValueChanged(double oldValue, double newValue)
        {
            base.OnValueChanged(oldValue, newValue);
            SetArc();
        }

        protected override void OnMaximumChanged(double oldMaximum, double newMaximum)
        {
            base.OnMaximumChanged(oldMaximum, newMaximum);
            SetArc();
        }

        private void SetArc()
        {
            if (_arc != null)
            {
                _arc.StartAngle = 359.999 * (Minimum / (Maximum - Minimum));
                _arc.EndAngle = 359.999 * (Value / (Maximum - Minimum));
            }
        }
    }
}