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.v24.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
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.
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"/>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsPercent property.
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.