Пример #1
0
        public async Task<bool> CreateSecondaryTile(Category category, Rect rect)
        {
            var firstProduct = category.Products.First();
            var tile = new SecondaryTile(category.TileId, "ShopNow", 
                category.Name, "category=" + category.Name, 
                TileOptions.ShowNameOnLogo, new Uri(firstProduct.ThumbnailImage));

            tile.ForegroundText = ForegroundText.Dark;

            return await tile.RequestCreateForSelectionAsync(rect, Placement.Above);
        }
Пример #2
0
 public async Task<bool> RemoveSecondaryTile(Category category, Rect rect)
 {
     SecondaryTile secondaryTile = new SecondaryTile(category.TileId);
     return await secondaryTile.RequestDeleteForSelectionAsync(rect, Placement.Above);
 }