private void QrCodeLoading(ImageWidget imageWidget)
{
storyboard = new Storyboard();
TransformGroup group = new TransformGroup();
group.Children.Add(new ScaleTransform { CenterX = 0.5, CenterY = 0.5, ScaleX = 0.5, ScaleY = 0.5 });
group.Children.Add(new RotateTransform());
//rtf = new RotateTransform();
var dbAscending = new DoubleAnimation(0, 360, new Duration(System.TimeSpan.FromSeconds(1)));
imageWidget.RenderTransform = group;
imageWidget.RenderTransformOrigin = new System.Windows.Point(0.5, 0.5);
dbAscending.RepeatBehavior = RepeatBehavior.Forever;
storyboard.Children.Add(dbAscending);
Storyboard.SetTarget(dbAscending, imageWidget);
Storyboard.SetTargetProperty(dbAscending, new PropertyPath(“(UIElement.RenderTransform).(TransformGroup.Children)[1].(RotateTransform.Angle)”));
storyboard.Begin();
}