sdk
latest
false
Developer Guide
Last updated Mar 23, 2024

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:

  1. The DrawingGroup paints the image of the icon itself. Multiple activities can use this same icon by referring to its Key.
  2. The DrawingBrush encapsulates the icon and links it to the correct activity designer via its Key.
    In this example, the DrawingBrush Key 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><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.



Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.