Skip to content

Commit d5d569c

Browse files
committed
Fixed bug in InAppNotification sample
1 parent b66de95 commit d5d569c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/InAppNotification/InAppNotificationPage.xaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ private void Load()
132132
{
133133
_exampleVSCodeInAppNotification.Dismiss(true);
134134
_exampleInAppNotification.Dismiss(true);
135-
_exampleCustomInAppNotification.Show(_inAppNotificationWithButtonsTemplate, NotificationDuration);
135+
136+
var templateContent = _inAppNotificationWithButtonsTemplate.LoadContent();
137+
_exampleCustomInAppNotification.Show(templateContent, NotificationDuration);
136138
});
137139

138140
SampleController.Current.RegisterNewCommand("Show notification with Visual Studio Code template (info notification)", (sender, args) =>

0 commit comments

Comments
 (0)