IT tutorials
 
Mobile
 

Windows Phone 8 : Range Controls (part 1) - ProgressBar

1/18/2015 8:18:29 PM
- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire

The RangeBase control is an abstract class that represents a control that oversees a numeric value that falls between a minimum and a maximum value. Windows Phone provides three RangeBase controls: the ProgressBar, ScrollBar, and Slider (see Figure 1).

Image

FIGURE 1 RangeBase controls.

The RangeBase control provides various range related properties and events for monitoring its Value property (see Table 1).

TABLE 1. Properties of the RangeBase Class

Image

Note

If the Value property is set to a value outside the range defined by the Minimum and Maximum properties, no Exception is raised. Instead the Value property is coerced and set to either the Minimum or Maximum value.

However, setting Minimum, Maximum, Value, SmallChange, or LargeChange to NaN, NegativeInfinity, or PositiveInfinity raises an ArgumentException. In addition, setting SmallChange or LargeChange to a value less than zero raises an ArgumentException.

ProgressBar

During time-consuming operations, it is important to provide an indication to the user that your application is busy, while still remaining responsive. The ProgressBar serves this purpose. It is not interactive; the user cannot modify it directly, and it is able to work in two modes: determinate and indeterminate.

Determinate mode allows you to display a value indicating the amount of work completed relative to the amount of work remaining, allowing the user to estimate how long the remainder of the operation will take. If the IsIndeterminate property is not specified, the control defaults to determinate.

Progress is displayed by setting the Value property of the control to the amount of work completed, and the Maximum property to the total amount of work to be performed. There is also a Minimum property that allows you to set a base point and can be useful when a portion of the work has already been completed.

The noninteractive nature of the control means that the Value property is updated from code, or via a data binding, while performing a background operation.

Alternatively, when progress of an operation cannot be monitored, or the total duration of an operation is unknown, the ProgressBar’s indeterminate mode can be engaged.


Best Practice

If the total amount of work required by an activity is known and progress can be periodically determined, avoid using an indeterminate ProgressBar. Use instead a determinate ProgressBar. Providing clear feedback about how long a user can expect to wait for completion of an operation improves the user’s experience.


When using the indeterminate mode by setting the IsIndeterminate property to true, the control is displayed as a series of animated dots.


Note

In previous versions of the Windows Phone SDK, the ProgressBar had a performance issue. This issue has been resolved in the Windows Phone 8 SDK.


 
Others
 
- Windows Phone 8 : Items Controls - ListBox, ComboBox
- Windows Phone 8 : LinkedIn (part 3) - Posting a Message, The Feeds Filter
- Windows Phone 8 : LinkedIn (part 2) - Accessing LinkedIn Content, Responding to a LinkedIn Post
- Windows Phone 8 : LinkedIn (part 1) - Configuring Your LinkedIn Account
- Windows Phone 8 : Twitter (part 2) - Checking for Tweets, Responding to a Tweet, Checking Twitter Notifications
- Windows Phone 8 : Twitter (part 1) - Configuring Your Twitter Account
- Windows Phone 8 : Working with People - The Me Tile (part 4) - Chatting with Friends, Setting Your Chat Status, Notifications
- Windows Phone 8 : Working with People - The Me Tile (part 3) - Uploading a Photo
- Windows Phone 8 : Working with People - The Me Tile (part 2) - Posting Status Updates, Checking In
- Windows Phone 8 : Working with People - The Me Tile (part 1) - Viewing Your Own Social Networking Wall
 
Youtube channel
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
programming4us programming4us
 
Popular tags
 
Video Tutorail Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS