private async void WidthNumberPicker_ValueChange(object sender, int Value) { App.Model.InkWidth = Value; WidthSlider.Value = Value; ShiwEllipse.Width = App.Model.InkWidth; await ShiwEllipse.Rotate(value : App.Model.InkAngle / (float)Math.PI * 180, centerX : (float)ShiwEllipse.Width / 2, centerY : (float)ShiwEllipse.Height / 2, duration : 0, delay : 0).StartAsync(); }
private async void HeightSlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e) { App.Model.InkHeight = (float)e.NewValue; HeightNumberPicker.Value = (int)App.Model.InkHeight; ShiwEllipse.Height = App.Model.InkHeight; await ShiwEllipse.Rotate(value : App.Model.InkAngle / (float)Math.PI * 180, centerX : (float)ShiwEllipse.Width / 2, centerY : (float)ShiwEllipse.Height / 2, duration : 0, delay : 0).StartAsync(); }
private async void Flyout_Opened(object sender, object e) { ShiwEllipse.Width = WidthSlider.Value; ShiwEllipse.Height = HeightSlider.Value; if (ShiwEllipse != null) { await ShiwEllipse.Rotate(value : App.Model.InkAngle / (float)Math.PI * 180, centerX : (float)ShiwEllipse.Width / 2, centerY : (float)ShiwEllipse.Height / 2, duration : 0, delay : 0).StartAsync(); } }
private async void RotationPicker_AngleChange(object sender, double Angle, double Rotation) { App.Model.InkAngle = (float)Angle; await ShiwEllipse.Rotate(value : -(float)Rotation + 7, centerX : (float)ShiwEllipse.Width / 2, centerY : (float)ShiwEllipse.Height / 2, duration : 0, delay : 0).StartAsync(); }