Skip to main content
A newer version of this page is available. .

ProgressBarEdit Class

Represents a progress bar.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v18.2.dll

Declaration

public class ProgressBarEdit :
    RangeBaseEdit,
    IProgressBarExportSettings,
    ITextExportSettings,
    IExportSettings

Remarks

The ProgressBarEdit is a scrollable control which is used to indicate the progress of a lengthy operation. A progress bar can be oriented horizontally and vertically. Use the BaseEdit.StyleSettings property to specify one of the two built-in styles: Native and Marquee (Indeterminate).

  • Native

    progressBar_Native

  • Marquee

    animMarqueeProgressBar

To learn more, see ProgressBarEdit.

Example

This example shows how to create ProgressBarEdit and MarqueeProgressBarEdit controls.

<Window x:Class="DXSample_ProgressBar.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <dxe:ProgressBarEdit Name="progressBarEdit1"
                             HorizontalAlignment="Center" VerticalAlignment="Center"
                             Width="300" Height="30"
                             Minimum="0" Maximum="100" Value="75" ContentDisplayMode="Value" Foreground="#FFFCF5F5" DisplayFormatString="{}{0}%">
        </dxe:ProgressBarEdit>
        <dxe:ProgressBarEdit Name="marqueeProgressBarEdit1" Grid.Row="1"
                             HorizontalAlignment="Center" VerticalAlignment="Center"
                             Width="300" Height="30">
            <dxe:ProgressBarEdit.StyleSettings>
                <dxe:ProgressBarMarqueeStyleSettings/>
            </dxe:ProgressBarEdit.StyleSettings>
        </dxe:ProgressBarEdit>
    </Grid>
</Window>

The following code snippets (auto-collected from DevExpress Examples) contain references to the ProgressBarEdit class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also