Custom activities - custom fields, icons


#1

Hello again!

I want to improve a bit design of my custom activities. So far, i managed to add my own categories, display names and descriptions. For now i would like to change icon and (especially) i would like to make some “visible fields” like on attached img :slight_smile:
Thanks for your help!!!


#2

I also wanted to know how to add these fields to the custom activities. I’d really appreciate it if someone could respond. Thanks !

Edit:

I’ve found this video on the other topic. I haven’t got time to look into it too much but I think it might be it :slight_smile:


#3

Thank yo very much!

It was really helpfull :slight_smile:

to clarify, in case to add a custom field:

  1. you need to create new Windows Designer project, link it to your activity:
    [Designer(typeof(ADRESS OF DESIGNER FILE))]

  2. To add a new field:

     <sapv:ExpressionTextBox
       Name ="Step1"
       Grid.Row="1"
       Grid.Column="1"
       DefaultValue="1"
       Expression="{Binding Path=ModelItem.VARIABLENAME, Mode=TwoWay,
          Converter={StaticResource ArgumentToExpressionConverter},
          ConverterParameter=Out}" OwnerActivity="{Binding Path=ModelItem}"
           MinLines="1" MaxLines="1" MinWidth="100"
           HintText="hint text to be displayed"/></code>
    
  3. To add an Ico You need to add co same XAML file:

I hope it will help someone!!
Greetings!