Create a button that animates the image

  1. In Project view, right-click MainWindow (type) and select New > Base controls > Button.
  2. In Properties, in Text, enter Animate image
  3. In Events, next to MouseClick event, select Add and select UI > MainWindow (type) > rotateSVG.