SDK
最新
False
横幅背景图像
开发者指南
上次更新日期 2024年3月23日

图标

Activity Creator



生成的代码

图标在设计项目的“Themes/Icons.xaml”文件中生成(即 MyCompany.MyProject.Activities.Design)。



图标由两部分组成:

  1. DrawingGroup 绘制图标本身的图像。 多个活动可以通过引用其键来使用相同的图标。
  2. DrawingBrush 封装图标,并通过其密钥将其链接到正确的活动设计器。
    在此示例中, DrawingBrush 键为“ExampleIcon”,因此此图标将自动显示在“示例”活动中。
    <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>

UiPath Studio 中的效果

图标显示在“活动”窗格和设计器上。 如果未提供图标,则使用默认值。



此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.