{
indeterminateAnimation?.Stop();
- indeterminateAnimation = AnimateVisual(indeterminateImage, "pixelArea", destinationValue, 0, 1000, AlphaFunction.BuiltinFunctions.Default, initialValue);
- indeterminateAnimation.Looping = true;
- indeterminateAnimation.Play();
+ if (null != indeterminateImage)
+ {
+ indeterminateAnimation = AnimateVisual(indeterminateImage, "pixelArea", destinationValue, 0, 1000, AlphaFunction.BuiltinFunctions.Default, initialValue);
+ indeterminateAnimation.Looping = true;
+ indeterminateAnimation.Play();
+ }
}
/// <summary>
indeterminateAnimation?.Stop();
indeterminateAnimation = null;
- indeterminateImage.Opacity = 0.0f;
+ if (null != indeterminateImage)
+ {
+ indeterminateImage.Opacity = 0.0f;
+ }
progressImage.Hide();
bufferImage.Show();
}
indeterminateAnimation?.Stop();
indeterminateAnimation = null;
- indeterminateImage.Opacity = 0.0f;
+ if (null != indeterminateImage)
+ {
+ indeterminateImage.Opacity = 0.0f;
+ }
bufferImage.Show();
progressImage.Show();
{
bufferImage.Hide();
progressImage.Hide();
- indeterminateImage.Opacity = 1.0f;
+ if (null != indeterminateImage)
+ {
+ indeterminateImage.Opacity = 1.0f;
+ }
UpdateIndeterminateAnimation();
}