c# - Is it possible to update Secondary Tile's DisplayName? -
i've secondary tile created this:
secondarytile tiledata = new secondarytile() { tileid = "myid", displayname = "myoldname", arguments = "none" }; tiledata.visualelements.square150x150logo = new uri(mediumimage); tiledata.visualelements.shownameonsquare150x150logo = true; return await tiledata.requestcreateasync();
the tile has been created , can see displayname. when want update image, can done via tileupdater:
tileupdater tileupdater = tileupdatemanager.createtileupdaterforsecondarytile("myid"); var tilexml = tileupdatemanager.gettemplatecontent(tiletemplatetype.tilesquare150x150image); // ... , on
but displayname - when looking @ tile template catalog, there none, used change tile's displayname - possible somehow?
in windows 10 (maybe windows phone 8.1) can use asyncupdate
:
_secondarytile.displayname = newdisplayname; await _secondarytile.updateasync();
Comments
Post a Comment