This is the template repository for the Dance Studio project developed in PROG10065 - Interactive App Development
Design the user interface for the dance studio app which uses buttons and an image control enclosed into a scrollable vertical stack layout.
- Experiment with adding multiple controls without a layout to understand the single-control nature of a content page
- Add the scrollable view with a vertical stack layout
- Add the two buttons inside the stack layout:
_btnWelcomeand_btnAction. The text of the welcome button isWelcome to MAUI Dance Studio. The text of the _btnActionbutton isStart Dancing` - Experiment with changing a vertical stack layout into a horizontal stack layout and back
- Add the image control
Add event handlers that are triggered when the user clicks on the two buttons. Display test alerts when the buttons get clicked or taped.
- Add a Clicked event handler to the welcome button named
OnWelcomeToDanceStudio. Display an alert welcoming the user. - Add a Clicked event handler to the action button named
OnToggleDancingand display an alert letting the user know that dancing is about to begin. - Troubleshoot errors resulting from a disconnect between the XAML markup and the event handler
Add an image control to the user interface in between the two buttons named _imgAvatar. Use the homer_simpson.gif GIF resource file. Explore resource files
as assets of a MAUI app.
- Explore resource assets in a MAUI app project and locate the GIF file to display
- Add the image control to the user interface and configure its layout properties
Manage the control visibility using the IsVisible property.
- Ensure only the welcome button is visible when the application starts
- Implement the
OnWelcomeToDanceStudioevent handler to show the image control and the action button
Use the image control to manage the animation state of the GIF file displayed.
- Start Dancing. Implement the
OnToggleDancingevent handler to start the GIF animation when the user clicks on the action button - Stop Dancing. Elaborate on the implementation of
OnToggleDancingto stop the GIF animation when the user clicks a second time on the action button
Below is the user interface of the completed application.
