Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hub/apps/develop/notifications/badges.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private void clearBadge()

## Get the sample code

* [Notifications sample](https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/Notifications)<br/> Shows how to create live tiles, send badge updates, and display toast notifications.
* [Windows App SDK notifications sample](https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/Notifications)<br/> Shows how to send app notifications and badge updates.

## Related articles

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ For more information, see these topics:

- [Send a local tile notification](/windows/uwp/launch-resume/sending-a-local-tile-notification)
- [Send a local app notification](app-notifications/app-notifications-quickstart.md)
- [Windows app notifications code samples](https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/Notifications)
- [Windows App SDK notifications sample](https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/Notifications)

## Scheduled notifications

Expand All @@ -120,7 +120,7 @@ By default, scheduled notifications expire three days from the time they are del
For more information, see these topics:

- [Schedule an app notification](app-notifications/app-notifications-scheduled.md)
- [Windows app notifications code samples](https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/Notifications)
- [Windows App SDK notifications sample](https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/Notifications)

## Periodic notifications

Expand All @@ -134,7 +134,7 @@ By default, periodic notifications expire three days from the time polling occur
For more information, see these topics:

- [Periodic notification overview](periodic-notification-overview.md)
- [Windows app notifications code samples](https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/Notifications)
- [Windows App SDK notifications sample](https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/Notifications)

## Push notifications

Expand All @@ -149,7 +149,7 @@ For more information, see:

- [Windows Push Notification Services (WNS) overview](push-notifications/wns-overview.md)
- [Guidelines for push notifications](push-notifications/index.md)
- [Windows app notifications code samples](https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/Notifications)
- [Windows App SDK notifications sample](https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/Notifications)


## Related topics
Expand All @@ -161,7 +161,7 @@ For more information, see:
* [Guidelines for toast notifications](app-notifications/index.md)
* [Periodic notification overview](periodic-notification-overview.md)
* [Windows Push Notification Services (WNS) overview](push-notifications/wns-overview.md)
* [Windows app notifications code samples on GitHub](https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/Notifications)
* [Windows App SDK notifications sample](https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/Notifications)



Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ Here's an example of how to check whether battery saver is turned on in Windows
```csharp
using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Navigation;
using Windows.System;
using Windows.System.Power;
...
Expand Down Expand Up @@ -216,16 +216,16 @@ async public void CheckForEnergySaving()
#include <winrt/Windows.Storage.h>
#include <winrt/Windows.System.h>
#include <winrt/Windows.System.Power.h>
#include <winrt/Windows.UI.Xaml.h>
#include <winrt/Windows.UI.Xaml.Controls.h>
#include <winrt/Windows.UI.Xaml.Navigation.h>
#include <winrt/Microsoft.UI.Xaml.h>
#include <winrt/Microsoft.UI.Xaml.Controls.h>
#include <winrt/Microsoft.UI.Xaml.Navigation.h>
using namespace winrt;
using namespace winrt::Windows::Foundation;
using namespace winrt::Windows::Storage;
using namespace winrt::Windows::System;
using namespace winrt::Windows::System::Power;
using namespace winrt::Windows::UI::Xaml;
using namespace winrt::Windows::UI::Xaml::Controls;
using namespace winrt::Microsoft::UI::Xaml;
using namespace winrt::Microsoft::UI::Xaml::Controls;
using namespace winrt::Windows::UI::Xaml::Navigation;
...
winrt::fire_and_forget CheckForEnergySaving()
Expand Down Expand Up @@ -267,7 +267,7 @@ winrt::fire_and_forget CheckForEnergySaving()
}
```

This is the XAML for the [**ContentDialog**](/uwp/api/Windows.UI.Xaml.Controls.ContentDialog) featured in this example.
This is the XAML for the [**ContentDialog**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.contentdialog) featured in this example.

```xaml
<ContentDialog x:Name="saveEnergyDialog"
Expand Down