UiPath Marketplace
最新
False
横幅背景图像
UiPath Marketplace 用户指南
上次更新日期 2024年4月16日

图标

Activity Creator

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



生成的代码

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

我们建议使用SharpVctors等工具将 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 中的效果

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



此页面是否有帮助?

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