IconSetFormat Class
Contains formatting settings for an Icon Sets conditional format.
Namespace: DevExpress.Xpf.Core.ConditionalFormatting
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Related API Members
The following members return IconSetFormat objects:
Remarks
The IconSetFormat class instances are used to set the GridControl’s IconSetFormatCondition.Format and PivotGridControl’s IconSetFormatCondition.Format properties.
The following image shows the icon set formatting.
The code sample below illustrates how to create the icon set conditional formatting rule with a custom format in markup for GridControl. Use the Conditional Formatting Rules Manager to generate this code.
<dxg:TableView.FormatConditions>
<dxg:IconSetFormatCondition FieldName="Profit">
<dx:IconSetFormat ElementThresholdType="Percent" IconSetType="Arrows3">
<dx:IconSetElement ThresholdComparisonType="GreaterOrEqual" Threshold="70">
<dx:IconSetElement.Icon>
<BitmapImage CacheOption="OnLoad" UriSource="pack://application:,,,/DevExpress.Xpf.Core.v17.1;component/Core/ConditionalFormatting/Images/IconSets/Arrows3_1.png" UriCachePolicy="{x:Null}"/>
</dx:IconSetElement.Icon>
</dx:IconSetElement>
<dx:IconSetElement ThresholdComparisonType="GreaterOrEqual" Threshold="30">
<dx:IconSetElement.Icon>
<BitmapImage CacheOption="OnLoad" UriSource="pack://application:,,,/DevExpress.Xpf.Core.v17.1;component/Core/ConditionalFormatting/Images/IconSets/Arrows3_2.png" UriCachePolicy="{x:Null}"/>
</dx:IconSetElement.Icon>
</dx:IconSetElement>
<dx:IconSetElement ThresholdComparisonType="GreaterOrEqual" Threshold="0">
<dx:IconSetElement.Icon>
<BitmapImage CacheOption="OnLoad" UriSource="pack://application:,,,/DevExpress.Xpf.Core.v17.1;component/Core/ConditionalFormatting/Images/IconSets/Arrows3_3.png" UriCachePolicy="{x:Null}"/>
</dx:IconSetElement.Icon>
</dx:IconSetElement>
</dx:IconSetFormat>
</dxg:IconSetFormatCondition>
</dxg:TableView.FormatConditions>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IconSetFormat 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.