Esempio n. 1
0
        public static async Task <string> PinToStart(BookItem Book)
        {
            BookLoader BL = new BookLoader();
            await BL.LoadCoverAsync(Book, true);

            string TilePath = await Resources.Image.CreateTileImage(Book);

            (string Args, string TileId) = TileParams(Book.Entry);
            SecondaryTile S = new SecondaryTile()
            {
                TileId = TileId, DisplayName = Book.Title, Arguments = Args
            };

            S.VisualElements.Square150x150Logo           = new Uri(TilePath);
            S.VisualElements.ShowNameOnSquare150x150Logo = true;

            if (await S.RequestCreateAsync())
            {
                return(TileId);
            }

            return(null);
        }