UiPath Documentation
marketplace
latest
false
重要 :
请注意,此内容已使用机器翻译进行了本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

Marketplace 用户指南

图标

Activity Creator

即将推出!图标将添加到下一个版本的活动创建器中!

文档图像

生成的代码

在将“图标生成”功能添加到“活动创建器”之前,您可以在设计项目中使用“Themes/Icons.xaml”文件(即 MyCompany.MyProject.Activities.Design)作为参考。

我们建议使用SharepointVectors等工具将 SVG 图标转换为 XAML,然后将其粘贴到此文件中。以<Activity Name>Icon形式为DrawingBrush提供一个键(例如AdditionIcon ),系统会自动将其应用于使用该名称的活动。

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<?comment-start?>
Simple Activity Icon
<?comment-end?>
    <Geometry x:Key="SimpleGeometry">F1 M50,50z M0,0z M25,2C12.318,2 2,12.317 2,25 2,37.683 12.318,48 25,48 37.682,48 48,37.683 48,25 48,12.317 37.682,2 25,2z M18.042,36.034L17.959,14.038 37,24.964 18.042,36.034z</Geometry>
    <DrawingGroup x:Key="SimpleDrawingGroup" ClipGeometry="M0,0 V50 H50 V0 H0 Z">
        <GeometryDrawing Brush="#FFFA4616" Geometry="{StaticResource SimpleGeometry}" />
    </DrawingGroup>
    <DrawingBrush x:Key="AdditionIcon" Drawing="{StaticResource SimpleDrawingGroup}" />SimpleDrawingGroup}" />
</ResourceDictionary>
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<?comment-start?>
Simple Activity Icon
<?comment-end?>
    <Geometry x:Key="SimpleGeometry">F1 M50,50z M0,0z M25,2C12.318,2 2,12.317 2,25 2,37.683 12.318,48 25,48 37.682,48 48,37.683 48,25 48,12.317 37.682,2 25,2z M18.042,36.034L17.959,14.038 37,24.964 18.042,36.034z</Geometry>
    <DrawingGroup x:Key="SimpleDrawingGroup" ClipGeometry="M0,0 V50 H50 V0 H0 Z">
        <GeometryDrawing Brush="#FFFA4616" Geometry="{StaticResource SimpleGeometry}" />
    </DrawingGroup>
    <DrawingBrush x:Key="AdditionIcon" Drawing="{StaticResource SimpleDrawingGroup}" />SimpleDrawingGroup}" />
</ResourceDictionary>

UiPath Studio 中的效果

图标显示在“活动”窗格和设计器上。 如果未提供任何图标,则使用默认值(请参阅下面的“超时加法”活动)。

  • Activity Creator
  • 生成的代码
  • UiPath Studio 中的效果

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新