答案 0 :(得分:1)
在C#中定义
ToastContent content = new ToastContent(){
Launch = "app-defined-string",
Visual = new ToastVisual()
{
BindingGeneric = new ToastBindingGeneric() { ... }
},
Actions = new ToastActionsCustom() { ... },
Audio = new ToastAudio() { ... }
};
在XML文件中定义
<toast launch="app-defined-string">
<visual>
<binding template="ToastGeneric">
...
</binding>
</visual>
<actions>
...
</actions>
<audio src="ms-winsoundevent:Notification.Reminder"/>
这将完全正常。
如果有任何问题或更多信息,请访问此link