Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
吐司通知';用XML定义参数_Xml_Windows_Powershell_Toast - Fatal编程技术网

吐司通知';用XML定义参数

吐司通知';用XML定义参数,xml,windows,powershell,toast,Xml,Windows,Powershell,Toast,在PowerShell中,在XML的帮助下,我正在尝试构建toast通知。我已经阅读了Microsoft的toast模式文档,但没有找到答案(或者我不知道去哪里查找) 是否可以删除Windows Powershell中的单词或将其更改为其他内容? S字母在图片中放大。有没有可能在那里展示整个缩小的图片?图片的像素是83x15 我的XML: [xml]$Toast = @" <toast scenario="$Scenario"> <vis

在PowerShell中,在XML的帮助下,我正在尝试构建toast通知。我已经阅读了Microsoft的toast模式文档,但没有找到答案(或者我不知道去哪里查找)

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

我的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]$Toast=@”
$AttributeText
$HeaderText
$TitleText
$BodyText1
$BodyText2
"@

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