diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/SampleLiveTiles.gif b/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/SampleLiveTiles.gif new file mode 100644 index 00000000000..c4a4b0b37db Binary files /dev/null and b/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/SampleLiveTiles.gif differ diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/SampleToast.gif b/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/SampleToast.gif new file mode 100644 index 00000000000..0456e52a9ea Binary files /dev/null and b/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/SampleToast.gif differ diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherTileLarge.png b/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherTileLarge.png new file mode 100644 index 00000000000..ce5c683b21d Binary files /dev/null and b/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherTileLarge.png differ diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherTileMedium.png b/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherTileMedium.png new file mode 100644 index 00000000000..edc4fd99c58 Binary files /dev/null and b/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherTileMedium.png differ diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherTileSmall.png b/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherTileSmall.png new file mode 100644 index 00000000000..2a95c48006e Binary files /dev/null and b/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherTileSmall.png differ diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherTileWide.png b/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherTileWide.png new file mode 100644 index 00000000000..a3316cc321e Binary files /dev/null and b/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherTileWide.png differ diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherToast.png b/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherToast.png new file mode 100644 index 00000000000..0686ce05fdf Binary files /dev/null and b/Microsoft.Toolkit.Uwp.SampleApp/Assets/NotificationAssets/WeatherToast.png differ diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Microsoft.Toolkit.Uwp.SampleApp.csproj b/Microsoft.Toolkit.Uwp.SampleApp/Microsoft.Toolkit.Uwp.SampleApp.csproj index d828e47ae9b..37ec112a0b2 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/Microsoft.Toolkit.Uwp.SampleApp.csproj +++ b/Microsoft.Toolkit.Uwp.SampleApp/Microsoft.Toolkit.Uwp.SampleApp.csproj @@ -119,9 +119,6 @@ 2.0.1 - - 1.0.5 - 4.5.0 @@ -142,6 +139,8 @@ + + @@ -150,6 +149,11 @@ + + + + + @@ -1562,4 +1566,4 @@ - + \ No newline at end of file diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/LiveTile/LiveTilePage.xaml b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/LiveTile/LiveTilePage.xaml index 459f6133f2e..59aa07a68d7 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/LiveTile/LiveTilePage.xaml +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/LiveTile/LiveTilePage.xaml @@ -3,8 +3,6 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:visualizer="using:NotificationsVisualizerLibrary" - xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls" mc:Ignorable="d"> @@ -23,7 +21,8 @@ Margin="20,20,20,0" HorizontalAlignment="Stretch" Click="ButtonPinTile_Click" - Content="Pin Tile" /> + Content="Pin Tile" + Style="{ThemeResource AccentButtonStyle}" /> Click the button to pin a secondary tile and send a notification to the tile, displaying rich visual content. The previews below show you what the tile will look like when you pin it. @@ -35,52 +34,10 @@ - - - - - - - - - - - - - - - - - + + + + \ No newline at end of file diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/LiveTile/LiveTilePage.xaml.cs b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/LiveTile/LiveTilePage.xaml.cs index ed74df5740a..b26782b5181 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/LiveTile/LiveTilePage.xaml.cs +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/LiveTile/LiveTilePage.xaml.cs @@ -5,24 +5,18 @@ using System; using Microsoft.Toolkit.Uwp.Notifications; using Microsoft.Toolkit.Uwp.SampleApp.Common; -using Microsoft.Toolkit.Uwp.SampleApp.Models; -using NotificationsVisualizerLibrary; using Windows.UI.Notifications; using Windows.UI.StartScreen; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Navigation; namespace Microsoft.Toolkit.Uwp.SampleApp.SamplePages { public sealed partial class LiveTilePage : Page { - private TileContent _tileContent; - public LiveTilePage() { InitializeComponent(); - Initialize(); } public static TileContent GenerateTileContent(string username, string avatarLogoSource) @@ -149,31 +143,9 @@ private async void PinTile() return; } - TileUpdateManager.CreateTileUpdaterForSecondaryTile(tile.TileId).Update(new TileNotification(_tileContent.GetXml())); - } - - private void Initialize() - { - // Generate the tile notification content - _tileContent = GenerateTileContent("MasterHip", "Assets/Photos/Owl.jpg"); - - // Prepare and update the preview tiles - var previewTiles = new PreviewTile[] { MediumPreviewTile, WidePreviewTile, LargePreviewTile }; - foreach (var tile in previewTiles) - { - tile.DisplayName = "Xbox"; - tile.VisualElements.BackgroundColor = Constants.ApplicationBackgroundColor; - tile.VisualElements.ShowNameOnSquare150x150Logo = true; - tile.VisualElements.ShowNameOnSquare310x310Logo = true; - tile.VisualElements.ShowNameOnWide310x150Logo = true; - tile.VisualElements.Square44x44Logo = Constants.Square44x44Logo; - tile.VisualElements.Square150x150Logo = Constants.Square150x150Logo; - tile.VisualElements.Wide310x150Logo = Constants.Wide310x150Logo; - tile.VisualElements.Square310x310Logo = Constants.Square310x310Logo; - _ = tile.UpdateAsync(); // Commit changes (no need to await) - - tile.CreateTileUpdater().Update(new TileNotification(_tileContent.GetXml())); - } + // Generate the tile notification content and update the tile + TileContent content = GenerateTileContent("MasterHip", "Assets/Photos/Owl.jpg"); + TileUpdateManager.CreateTileUpdaterForSecondaryTile(tile.TileId).Update(new TileNotification(content.GetXml())); } } } \ No newline at end of file diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Toast/ToastPage.xaml b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Toast/ToastPage.xaml index 18c2c3f99a8..86884645118 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Toast/ToastPage.xaml +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Toast/ToastPage.xaml @@ -3,7 +3,6 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:visualizer="using:NotificationsVisualizerLibrary" mc:Ignorable="d"> @@ -21,7 +20,8 @@