【问题标题】:Toast notification's parameters with XMLToast 通知的 XML 参数
【发布时间】:2021-02-25 06:35:12
【问题描述】:

在 PowerShell 的 XML 帮助下,我试图建立一个 toast 通知。我浏览了 Microsoft 的 toast 架构文档,但没有找到答案(或者我不知道去哪里找)

是否可以删除单词Windows Powershell 或将其更改为其他单词? S 字母放大图片。是否有可能以某种方式在那里显示整个缩小的图片?图片的像素为 83x15。

Toast Notification image.

我的 XML:

[xml]$Toast = @"
<toast scenario="$Scenario">
    <visual>
    <binding template="ToastGeneric">
        <image id="1" placement="appLogoOverride" src="$LogoImage"/>
        <text >$AttributionText</text>
        <text>$HeaderText</text>
        <group>
            <subgroup>
                <text hint-style="title" hint-wrap="true" >$TitleText</text>
            </subgroup>
        </group>
        <group>
            <subgroup>     
                <text hint-style="body" hint-wrap="true" >$BodyText1</text>
            </subgroup>
        </group>
        <group>
            <subgroup>     
                <text hint-style="body" hint-wrap="true" >$BodyText2</text>
            </subgroup>
        </group>
    </binding>
    </visual>
    <actions>
        <action activationType="system" arguments="dismiss" content="$DismissButtonContent"/>
    </actions>
</toast>
"@

【问题讨论】:

    标签: xml windows powershell toast


    【解决方案1】:

    至少图像很容易修复,只需将您的徽标编辑为 83x83 像素的正方形

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-24
      • 2016-09-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多