Skip to content

Commit 055c9d0

Browse files
author
anbare
committed
Switched to Notifications library and 14393
1 parent fdaddb4 commit 055c9d0

File tree

8 files changed

+32511
-18970
lines changed

8 files changed

+32511
-18970
lines changed

BackgroundTaskComponent/BackgroundTaskComponent.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<AssemblyName>BackgroundTaskComponent</AssemblyName>
1212
<DefaultLanguage>en-US</DefaultLanguage>
1313
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
14-
<TargetPlatformVersion>10.0.10240.0</TargetPlatformVersion>
14+
<TargetPlatformVersion>10.0.14393.0</TargetPlatformVersion>
1515
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
1616
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
1717
<FileAlignment>512</FileAlignment>

BackgroundTaskComponent/ToastNotificationBackgroundTask.cs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Microsoft.QueryStringDotNET;
2-
using NotificationsExtensions.Toasts;
2+
using Microsoft.Toolkit.Uwp.Notifications;
33
using System;
44
using System.Collections.Generic;
55
using System.Linq;
@@ -98,14 +98,20 @@ private void SendToast(string message)
9898
{
9999
Visual = new ToastVisual()
100100
{
101-
TitleText = new ToastText()
101+
BindingGeneric = new ToastBindingGeneric()
102102
{
103-
Text = "Background Task Completed"
104-
},
105-
106-
BodyTextLine1 = new ToastText()
107-
{
108-
Text = message
103+
Children =
104+
{
105+
new AdaptiveText()
106+
{
107+
Text = "Background Task Completed"
108+
},
109+
110+
new AdaptiveText()
111+
{
112+
Text = message
113+
}
114+
}
109115
}
110116
}
111117
};

BackgroundTaskComponent/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"dependencies": {
3-
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0",
4-
"NotificationsExtensions.Win10": "10240.0.6",
3+
"Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2",
4+
"Microsoft.Toolkit.Uwp.Notifications": "1.1.0",
55
"QueryString.NET": "1.0.0"
66
},
77
"frameworks": {

0 commit comments

Comments
 (0)