Exemple #1
0
        private static Path GetSectorVisual(RadialSegment segment)
        {
            Path         sectorVisual = new Path();
            PathGeometry geometry     = BackgroundSectorItemLayer.RenderArc(segment);

            sectorVisual.Data = geometry;
            sectorVisual.Fill = segment.TargetItem.ContentSectorBackground;
            return(sectorVisual);
        }
Exemple #2
0
        public override void ShowVisual(RadialSegment segment, double startAngle)
        {
            if (segment != null && segment.LayoutSlot != RadialLayoutSlot.Invalid)
            {
                Path sectorItem = BackgroundSectorItemLayer.GetSectorVisual(segment);
                segment.Visual = sectorItem;

                this.Visual.Children.Add(sectorItem);
            }
        }
Exemple #3
0
        public override void UpdateVisual(RadialSegment segment, double startAngle)
        {
            if (segment != null && segment.LayoutSlot != RadialLayoutSlot.Invalid)
            {
                Path sectorVisual = segment.Visual as Path;

                if (sectorVisual != null)
                {
                    sectorVisual.Data = BackgroundSectorItemLayer.RenderArc(segment);
                    sectorVisual.Fill = segment.TargetItem.ContentSectorBackground;
                }
            }
        }