Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca56631

Browse files
authored
Merge pull request #25 from woodcoder/24-windows-notification-example-error
Add fix to load relevant assemblies for the Windows notification
2 parents 86c7f80 + 72408c2 commit ca56631

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ function Show-Notification {
8888
</visual>
8989
</toast>"
9090
91+
$null = [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType=WindowsRuntime]
92+
$null = [Windows.Data.Xml.Dom.XmlDocument, Windows.Data, ContentType=WindowsRuntime]
93+
9194
$NotificationXml = New-Object Windows.Data.Xml.Dom.XmlDocument
9295
$NotificationXml.LoadXml($Notification)
9396
@@ -109,6 +112,8 @@ PowerShell prompt. You may need to run
109112
`Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass`
110113
in your PowerShell window first.
111114

115+
![Screen capture of the windows notification appearing.](doc/img/windows-notification.gif "Windows Carbon Aware Notification")
116+
112117
## Motivation
113118

114119
Inspiration for circa came from thinking about the question "what's the

doc/img/windows-notification.gif

669 KB
Loading

0 commit comments

Comments
 (0)