Create a button that replaces the image

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