Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

public class IconSetFormat :
    IndicatorFormatBase,
    IXtraSupportDeserializeCollectionItem

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.

CFIconSets

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>

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.

#Inheritance

Object
DispatcherObject
DependencyObject
Freezable
DevExpress.Xpf.Core.ConditionalFormatting.IndicatorFormatBase
IconSetFormat
See Also