Create your first automation in just a few minutes.Try Studio Web →
by Internal Labs
0
Activity
20.9k
Summary
Summary
Custom activity that accepts XAML mark-up for WPF forms and intialization data for the form. Launches the form on the screen, where the user can complete it.
Overview
Overview
Objectives:
Technical Approach:
All objectives above are achieved by leveraging the features of the Windows Presentation Foundation framework. This way, we can receive as input a custom XAML (or Json) mark-up from which we can generate a Form that we can further initialize with whatever data the developer passes to our custom activity.
This means that, inside our forms, we can use any type of UI element (also called controls) that we could normally use in a standard WPF form. Since the WPF library is quite extensive and provides plenty of controls and configuration options, we can make sure that the users of this custom activity are provided with all the flexibility and customization possibilities they need.
Basically, the custom activity is designed to receive a XAML file with a Grid control as its parent element which will contain all the controls of our current page. This mark-up is passed to a WPF window and the form gets launched. The developer can optionally pass a XAML file which contains a ResourceDictionary control. This control can contain styles which will be applied to the entire form.
In order to enhance the number of possible elements in our forms, we also include the Extended WPF Toolkit in this package. Therefore, all controls in this library can be used in our forms.
This package provides some minimal visual enhancements in addition to the standard WPF look. This is done by using the MetroLight theme.
For more details, please see the attached documentation.
More information about this approach can be found here:
Features
Features
This is an ideal activity for situations in which you want a highly customizable form with various types of controls and customizable style.
Additional Information
Additional Information
Dependencies
https://learn.microsoft.com/en-us/dotnet/desktop/wpf/?view=netdesktop-7.0 https://www.nuget.org/packages/Infragistics.Themes.MetroLight.Wpf/ https://github.com/xceedsoftware/wpftoolkit
Code Language
C#, Visual Basic
Runtime
Windows Legacy (.Net Framework 4.6.1)
Technical
Version
1.0.0Updated
April 3, 2023Works with
Studio: 21.10 - 22.10
Certification
Silver Certified
Support
UiPath Community Support
Resources