Summary
Good job! In this chapter, we learned how to create a reusable, good-looking control that can be used in any .NET MAUI app. To enhance the user experience (UX) of the app, we used some animations that give the user more visual feedback. We also got creative with the use of XAML to define a GUI of the control that looks like a photo, with a hand-written description.
After that, we used events to expose the behavior of the control back to the MainPage
page to limit the contact surface between your app and the control. Most importantly of all, we touched on the subject of GestureRecognizers
, which can make our life much easier when dealing with common gestures.
Looking for ideas on how to make this app even better? Try this out: keep a history of the likes and dislikes and add a view to display each collection.
In the next chapter, we will create a photo gallery app using the CollectionView
and CarouselView
controls. The app will also allow you to favorite photos you...