Back to Devexpress

ProgressBarEdit.ContentDisplayMode Property

wpf-devexpress-dot-xpf-dot-editors-dot-progressbaredit.md

latest2.6 KB
Original Source

ProgressBarEdit.ContentDisplayMode Property

Gets or sets the content source. This is a dependency property.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public ContentDisplayMode ContentDisplayMode { get; set; }
vb
Public Property ContentDisplayMode As ContentDisplayMode

Property Value

TypeDescription
ContentDisplayMode

A ContentDisplayMode enumeration value that specifies the editor’s content source.

|

Available values:

NameDescription
None

Displays only the progress bar.

| | Value |

Displays the value of the editor’s RangeBaseEdit.Value property.

| | Content |

Displays custom content.

|

Remarks

The ProgressBarEdit editor displays its RangeBaseEdit.Value if the ContentDisplayMode property is set to ContentDisplayMode.Value.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ContentDisplayMode 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.

wpf-grid-read-only-and-enabled-binding/CS/MainWindow.xaml#L32

xml
<DataTemplate>
    <dxe:ProgressBarEdit Name="PART_Editor" ContentDisplayMode="Value" IsPercent="True" DisplayFormatString="p0"/>
</DataTemplate>

See Also

ProgressBarEdit Class

ProgressBarEdit Members

DevExpress.Xpf.Editors Namespace