-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Windows Application Development Cookbook
By :
While performing some time-consuming calculations or downloading data from the Internet, it is a good idea to present a progress bar showing that a longer operation is currently in progress and the user would need to wait. In this recipe, you will learn how to show the progress bar during calculations and how to hide it when calculations are completed.
To step through this recipe, you need the automatically generated project configured according to the MVVM design pattern, as described in the Creating the view model for a page recipe.
To create a page with a progress bar shown during calculations, and hidden automatically when calculations are completed, perform the following steps:
Define a BoolToVisibilityNegatedConverter class implementing the IValueConverter interface in the BoolToVisibilityNegatedConverter.cs file in the Models directory:
public class BoolToVisibilityNegatedConverter :
IValueConverter...