Back to Devexpress

ExpressionConditionBase.Format Property

wpf-devexpress-dot-xpf-dot-grid-dot-expressionconditionbase.md

latest2.4 KB
Original Source

ExpressionConditionBase.Format Property

Gets or sets the formatting settings applied to cells (or corresponding rows) whose values take part in conditional formatting. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
Format

A Format object that provides formatting settings.

|

Remarks

See the Specifying Formats section of the Conditional Formats topic to learn more.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Format 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-data-grid-disable-rows-based-on-their-values/CS/WpfApplication/MainWindow.xaml#L46

xml
<dxg:FormatCondition Expression="![AllowEdit]">
    <dxg:FormatCondition.Format>
        <dx:Format Foreground="Gray" Background="LightGray"/>

See Also

Conditional Formats

ExpressionConditionBase Class

ExpressionConditionBase Members

DevExpress.Xpf.Grid Namespace