如何在PowerShell中使用输入文本框实现Windows 10 toast通知



这个↓是C#,但我想在PowerShell中实现它
https://learn.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts?tabs=builder-语法#输入

我不知道怎么写。。xml。

环境

  • PowerShell 5
  • Windows 10
  • 应为

<?xml version="1.0" encoding="utf-8"?>
<toast>
<visual>
<binding template="ToastGeneric">
<text>$($title)</text>
<text>$($message)</text>
# <inputTextBox?>...
</binding>
</visual>
</toast>

它无法在PowerShell中实现它
您提供的网站,清楚地展示如何使用它:

Install Notifications Visualizer. This free Windows app helps you design interactive toast notifications by providing an instant visual preview of your toast as you edit it, similar to Visual Studio's XAML editor/design view. See Notifications Visualizer for more information, or download Notifications Visualizer from the Store.

如果你想构建一个应用程序/通知应用程序,你必须学会如何使用vs和c#,但PowerShell

最新更新