For the purposes of this sample, we don't need to be able to handle all the possible post types.We want the subreddit widget to also offer a refresh button to reload the current subreddit.We want users to be able to select a subreddit from a list of available options, and we want to save the selected subreddit as a setting and load it up the next time the sample is loaded. The two widget need to be self contained and without strong references to one another. A minimal Reddit browser made up of two "widgets": one showing posts from a subreddit, and the other one showing the currently selected post.Let's start by outlining exactly what we want to build: In this case, we want to build a very simple and minimalistic Reddit browser for a select number of subreddits. Now that we've outlined all the different components that are available through the CommunityToolkit.Mvvm package, we can look at a practical example of them all coming together to build a single, larger example.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |