Example #1
0
        internal static RadPolarPoint GetCenterPosition(RadialLayoutSlot segment)
        {
            var radius = (segment.OuterRadius + segment.InnerRadius) / 2;
            var angle  = segment.StartAngle + segment.SweepAngle / 2;

            return(new RadPolarPoint(radius, angle));
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="DecorationItemButton"/> class.
        /// </summary>
        public DecorationItemButton()
        {
            this.DefaultStyleKey = typeof(DecorationItemButton);

            this.layoutSlot = new RadialLayoutSlot();
        }