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; }
private void layoutRoot_ManipulationDelta(object sender, ManipulationDeltaRoutedEventArgs e) { storyBoard.Stop(); Angle = QuadrantHelper.GetAngle(e.Position, RenderSize); }