Icon
Activity Creator

Generated Code
Icons are generated in the Themes/Icons.xaml file of the Design Project (i.e. MyCompany.MyProject.Activities.Design).

Icons consist of two parts:
-
The
DrawingGrouppaints the image of the icon itself. Multiple activities can use this same icon by referring to its Key. -
The
DrawingBrushencapsulates the icon and links it to the correct activity designer via its Key.In this example, the
DrawingBrushKey is "ExampleIcon", so this icon will automatically appear on the Example activity.<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<DrawingGroup x:Key="starStruck1234_0">
...
</DrawingGroup>
<DrawingBrush x:Key="ExampleIcon" Drawing="{StaticResource starStruck1234_0}" />
</ResourceDictionary>
Effect in UiPath Studio
Icons are shown in the Activities pane and on the designer. If no icon is provided, a default is used.
