public void StopRotateAnim() { MyApp.ExecuteOnUI(delegate() { CenterForm.BeginAnimation(RotateTransform.AngleProperty, null); }); }
public void StartRotateAnim(double secRotateTime = 0.75) { MyApp.ExecuteOnUI(delegate() { var anim = new DoubleAnimation(0, 360, new Duration(TimeSpan.FromSeconds(secRotateTime))); anim.RepeatBehavior = RepeatBehavior.Forever; CenterForm.BeginAnimation(RotateTransform.AngleProperty, anim); }); }
private void xfPurchasesAbvance_SizeChanged(object sender, EventArgs e) { sPCentral.Location = CenterForm.Function(this.Width, sPCentral.Width); }
private void xfMovimientofactura_SizeChanged(object sender, EventArgs e) { sidePanel1.Location = CenterForm.Function(this.Width, sidePanel1.Width); }
private void xfInventario_SizeChanged(object sender, EventArgs e) { pCCentral.Location = CenterForm.Function(this.Width, pCCentral.Width); }
private void xfVistaExistencia_SizeChanged(object sender, EventArgs e) { sidePanel1.Location = CenterForm.Function(this.Width, sidePanel1.Width); }