次の方法で共有


IXRProgressBar (Windows Embedded CE 6.0)

1/6/2010

This class represents a control that indicates the progress of an operation.

Syntax

class IXRProgressBar : public IXRRangeBase

Methods

Method Description

IXRProgressBar::GetIsIndeterminate

Retrieves a value that indicates whether this progress bar displays a repeating pattern or fills incrementally based on the current value in IXRRangeBase::GetValue.

IXRProgressBar::SetIsIndeterminate

Sets a value that indicates whether this progress bar displays a repeating pattern or fills incrementally based on the current value in IXRRangeBase::GetValue.

Remarks

An IXRProgressBar control inherits from IXRRangeBase and indicates progress of a lengthy operation by displaying one of the following styles:

  • A bar that displays a repeating pattern.
  • A bar that fills itself incrementally, based on a value.

The value that you provide in IXRProgressBar::SetIsIndeterminate determines the appearance of the progress bar.

Call IXRProgressBar::SetIsIndeterminate with a value of true to display a repeating pattern.

Call IXRProgressBar::SetIsIndeterminate with a value of false to fill the bar incrementally, based on a value. When you specify false, you must indicate the range by using the inherited methods IXRRangeBase::SetMinimum and IXRRangeBase::SetMaximum. You must call the inherited method IXRRangeBase::SetValue every time the progress value changes to determine the percentage of the bar that is filled at a given time.

You can also define a progress bar in Microsoft Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this element in the source XAML for your application, see this Microsoft Web site.

Inheritance Hierarchy

IXRDependencyObject

    IXRUIElement

        IXRFrameworkElement

            IXRControl

                IXRRangeBase

IXRProgressBar

.NET Framework Equivalent

System.Windows.Controls.ProgressBar

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Classes for UI Element Management

Other Resources