如何使正在运行的WPF应用程序窗口透明?

Pio*_*iak 2 windows wpf

我有一个AutoHotKey脚本,该脚本允许我在活动窗口上设置透明度,但不适用于Powershell ISE等WPF应用程序。

有没有办法做到这一点?

编辑:如问题所述,我需要在运行的WPF应用程序(如Powershell ISE)上执行此操作。

Max*_*mus 5

在窗口元素中设置

 AllowsTransparency="True" WindowStyle="None" Background="Transparent"
Run Code Online (Sandbox Code Playgroud)