예제 #1
0
        private void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
        {
            pieSlicePath.Radius     = this.Radius;
            pieSlicePath.StartAngle = this.StartAngle;
            pieSlicePath.Angle      = this.Angle;
            pieSlicePath.Fill       = new SolidColorBrush(this.BackgroundColor);

            textBlock.Foreground  = new SolidColorBrush(this.ForegroundColor);
            textBlockRotate.Angle = StartAngle + Angle / 2;

            var newPoint = QuadrantHelper.Calculate(4 * Radius / 5, StartAngle, Angle);

            textBlockTranslate.X = newPoint.X;
            textBlockTranslate.Y = newPoint.Y;
        }
예제 #2
0
        private void layoutRoot_ManipulationDelta(object sender, ManipulationDeltaRoutedEventArgs e)
        {
            storyBoard.Stop();

            Angle = QuadrantHelper.GetAngle(e.Position, RenderSize);
        }