UWP-054 - UWP SoundBoard - Finishing Touches

Sign in to queue

Description

In this fifth video, Bob cleans up the user interface and the code, putting the finishing touches on it so that it can be submitted to the Windows Store.

Lesson source code: https://github.com/Windows-Readiness/AbsoluteBeginnersWin10/tree/master/UWP-054/UWP-054

Full series source code: https://github.com/Windows-Readiness/AbsoluteBeginnersWin10

PDF: Coming Soon

Embed

Download

Download this episode

Download captions

The Discussion

  • User profile image
    Jockey4her

    Instead of burying misc code snippets into this badly outlined un tagged video series, why don't you go to MSDN, and take each sample of each type, and list them in their proper searchable location as Windows 10 Universal App code examples.  Much more useful than getting lost in here, or in some codeplex archive tree.

  • User profile image
    tommasobert​oni

    Hi Bob,

    about the feature of removing the filter's text, you should look at the args.Reason property (args is a parameter in the _TextChanged method) and act like this:

    if (args.Reason != AutoSuggestionBoxTextChangeReason.ProgrammaticChange) { /*logic*/ }

    In this way, you can write sender.Text = string.Empty; in the _QuerySubmitted method without applying the empty filter.

  • User profile image
    tommasobert​oni

    Also, I think it would be better to use the args.ChosenSuggestion value to retrieve the query in the _QuerySubmitted method: this also allows the user to pick his choiche by clicking the suggestion. If he does like this and you filter the sounds by sender.Text you'll filter by whatever is written in the AutoSuggestBox, not by the user's selection.

  • User profile image
    BobTabor

    @Jockey4her: Thank you for your feedback, Chris.  :)

    @tommasobertoni: Thank you for the good tips about the AutoSuggestBox.  Much appreciated.

Add Your 2 Cents