Displaying a progress bar
A common requirement for applications is to notify the user about the progress of an operation. What if you want to keep the user up to date even when the application is minimized? Notifications can help you by integrating a progress bar that the main application can update when needed.
This scenario is supported by the concept of bindable data, which enables us to add one or more placeholders in the notification, which can be replaced at a later stage with actual data.
Let's see first how we can create such a notification:
string tag = "report-progress"; new ToastContentBuilder() .AddText("Report generation in progress...") .AddVisualChild(new AdaptiveProgressBar() { Title = "Report generation", Value = new BindableProgressBarValue &...