Logic changes and UI changes

Let's start with the MainPage.xaml file of our UWP application. At present, there is only one change here (we will have a second that we'll come back to later). What we need to do is make the quantity not visible when the user doesn't have access to view it. Locate the TextBox quantity within the XAML:

<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding Quantity, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Visibility="{Binding CanViewQuantity, Converter={StaticResource BooleanToVisibilityConverter}}"/>

Who would have thought that such a small amount of code would raise so many questions? However, the answer is simple: we don't have any of the new things referenced here yet they're coming. However, we ...

Get C# 8 and .NET Core 3 Projects Using Azure - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.