![]() ![]() The customized spinner posted by had a small issue where the spinner would be shifted down and to the right by the size of one dot. It binds to an "IsWorking" boolean in the viewmodel to show the control and start the animation. Here's an example of an all-xaml solution. SpinnerWidth = Convert.ToInt32(e.NewValue) SpinnerHeight = Convert.ToInt32(e.NewValue) Protected override void OnPropertåhanged(DependencyPropertåhangedEventArgs e) Public partial class Spinner : UserControl The user control is bound to itself (code-behind) which takes care of all calculations. This implementation automatically calculates required angles, widths, and heights on the fly. This is an update to the code given by to parameterize width, height, and ellipse size. ![]() Be sure to point it to the correct ellipse. To get a cool disappearing effect on each ellipse add the following after each ColorAnimationUsingKeyFrames element. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |