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

ProgressBarEdit.IsPercent Property

Gets or sets whether the value is displayed as a percentage. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v19.1.dll

Declaration

public bool IsPercent { get; set; }

Property Value

Type Description
Boolean

true to display the value as a percentage; otherwise, false.

Remarks

If the IsPercent property is set to true, the progress bar’s value can be displayed as a percentage. Use the editor’s BaseEdit.DisplayFormatString property to specify the format pattern.

progressBar_IsPercent

Example

This example shows how to display a progress bar’s value as a percentage.

<dxe:ProgressBarEdit Name="progressBarEdit1" Width="150" Height="22" Maximum="30" Minimum="0" Value="21"
                     IsPercent="True" DisplayFormatString="p0"                               
                     ContentDisplayMode="Value"
                     Foreground="White"/>
See Also