[Windows 8 App] display controls --ProgressBar message, ProgressRing
ProgressBar control
Sometimes when performing more complex applications, the relatively long time to wait
In the process of waiting we will generally use the progress bar to prompt the current speed of execution
ProgressBar control partakers are two kinds of patterns to determine two kinds ProgressBar progress and uncertain progress
Determine the progress of the ProgressBar control: from left to right color to fill a long way to represent progress message
Uncertain progress of the ProgressBar control: repetition of animation to show proof of the task is still in progress
ProgressBar common attributes
Attributes | Introduction property |
Maximum | The maximum achieved progress bar, the maximum value of 100 |
Minimum | Obtaining the minimum value of the progress bar, the minimum value is 0 |
Value | Determine the current position of the progress bar |
IsIndeterminate | ProgressBar control mode, to determine the value of False indicates progress, while a value of True indicates indeterminate progress |
Let's practice ProgressBar control provides an example of a task change message
[ProgressBar] a new project, two new ProgressBar in MainPage.xaml [Grid], the two TextBlock
Procedures are as follows:
It plans to set up face as follows:
After the project execution screen:
ProgressRing Controls
ProgressRing properties and almost exclusively in the same ProgressBar
The difference is that ProgressBar progress bar, but progress is ProgressRing ring
ProgressRing control has a special attribute [IsActive] to indicate whether you want to display an indeterminate progress ring
A value of True is displayed indeterminate progress ring, that is False hide indeterminate progress ring
Let's practice examples a ProgressRing control
[] ProgressRing a new project, add a ProgressRing MainPage.xaml in Grid [], one TextBlock
Procedures are as follows:
It plans to set up face as follows:
Project execution screen:
In the implementation of the project, you can see the progress in the rotating ring
Original: Big Box [Windows 8 App] control that displays messages ------ ProgressBar, ProgressRing