You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<toast>
<visual>
<bindingtemplate="ToastGeneric">
<imageplacement="appLogoOverride"src="./warn.ico"/>
<text>Potential Crash Warning</text>
<text>It is Recomended to Save any Unsaved Progress within 30 Seconds.</text>
</binding>
</visual>
<audiosrc="ms-winsoundevent:Notification.Reminder"/>
</toast>
C# Code (modified DesktopToast.Proxy) :-
using System;using System.IO;using System.Linq;using System.Reflection;using System.Xml.Linq;namespace DesktopToast.Proxy
{classProgram{staticvoidMain(string[]args){if(!args.Any()){
Console.WriteLine(" Usage :-");
Console.WriteLine(" notify.exe [AppName] [xml-file-path]");return;}stringxml_path= @args[1];if(!File.Exists(xml_path)){
Console.WriteLine("XML File Not Found !");return;}stringreadText= XDocument.Load(xml_path).ToString();varrequest=new ToastRequest
{ToastXml=readText,ToastTitle="DesktopToast WPF Sample",ToastBody="This is a toast test.",ShortcutFileName= args[0]+".lnk",ShortcutTargetFilePath= Assembly.GetExecutingAssembly().Location,AppId= args[0],};
ToastManager.ShowAsync(request).Wait();}}}
Does this library even support Windows 10 xml toasts ? or do i need windows 8 style xml ?
EDIT : Solved it by using absolute paths, but how can i use absolute paths in xml ?
and how to change the timeout ?
The text was updated successfully, but these errors were encountered:
HOW ITS SUPPOSED TO LOOK :-
HOW IT REALLY LOOKS :-
Contents of "CrashAlert.xml" :-
C# Code (modified DesktopToast.Proxy) :-
Does this library even support Windows 10 xml toasts ? or do i need windows 8 style xml ?
EDIT : Solved it by using absolute paths, but how can i use absolute paths in xml ?
and how to change the timeout ?
The text was updated successfully, but these errors were encountered: