Create a severity color converter

Create a converter that translates alarms severity into colors.
  1. Create the converter:
    1. In the
      Project view
      pane, 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
      .
      SUGGERIMENTO: If you do not see the required option, select the
      Show all
      check box.
    3. In the first row, in the
      Keys
      column, double-click
      0
      and enter
      1
      .
    4. In the first row, in the
      Values
      column, double-click
      #00000000
      and enter
      #ff0000
      .
    5. Add another row by selecting
      Add
      in the top-right corner of the central pane.
    6. In the second row, in the
      Keys
      column, double-click
      0
      and enter
      2
      .
    7. In the second row, in the
      Values
      column, double-click
      #00000000
      and enter
      #0664c2
      .
Fornire un feedback
Hai domande o feedback su questa documentazione? invia il tuo feedback qui.
Normal