Create a severity color converter

Create a converter that translates alarms severity into colors.

  1. Create the converter:
    1. In Project view, right-click Converters and select New > Key-value converter.
    2. Hover-over the converter, select Edit, and enter SeverityColorConverter.
  2. Configure the converter:
    1. Double-click SeverityColorConverter.
    2. In the central pane, next to Values, select String and select Color.
      Tip: If you do not see the required option, select the Show all checkbox.
    3. Add another row by selecting Add.
    4. Enter the following values:
      Keys (UInt32) Values (Color)
      1 #ff0000
      0 #0664c2