Does UIPath support WPF applications?

Does UIPath support WPF applications?

Hello @consult-oparra,

welcome in the UiPath Community. I assume you mean UiPath Task Capture, yes it does.

I tried it with a tiny PowerShell WPF (Windows Presentation Foundation) program from here.

[xml]$XAML = @"
<Window x:Class="WpfApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApplication"
mc:Ignorable="d"
Title="MainWindow" Height="768" Width="1024">
        <StackPanel x:Name="StackPanel" Margin = "50,50,50,50">                                          
        </StackPanel>
</Window>
"@ -replace 'mc:Ignorable="d"','' -replace "x:N",'N' -replace '^<Win.*', '<Window'

[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')

try {
  $Form=[Windows.Markup.XamlReader]::Load( (New-Object System.Xml.XmlNodeReader $XAML) )
} catch{
  Write-Host "Windows.Markup.XamlReader can't load"
}

$StackPanel = $Form.FindName("StackPanel")

function add_button($strLabel) {
  $objButton = New-Object System.Windows.Controls.Button
  $objButton.Content = $strLabel
  $objButton.Background = 'Blue'
  $objButton.Foreground = 'White'
  $objButton.Name = $strLabel
  $objButton.Add_Click({
    write-host "$($this.content) pressed"
  }) 
  $StackPanel.Children.Insert(($StackPanel.Children.count),$objButton)   
} 

add_button "TextNewBTN"
add_button "TextNewBTN2"
add_button "TextNewBTN3"

$Form.ShowDialog()

And it works.

image

image

Best regards
Stefan