uwp - Is there any way to customize the template of tile? -


now implement live tile on uwp application.

i found tile template on msdn(https://msdn.microsoft.com/en-us/library/windows/apps/hh761491.aspx?f=255&mspperror=-2147217396#versions) i want change style of template such text size. in investigation, didn't find way change template of tile. there way change that? or there way use custom template?

string tilexmlstring = "<tile>"                              + "<visual>"                              + "<binding template='tilewide310x150smallimageandtext04'>"                              + "<image id='1' src='ms-appx:///images/tile-sdk.png'/>"                              + "<text id='1'>text id 1</text>"                              + "<text id='2'>text id 2</text>"                              + "</binding>"                              + "</visual>"                              + "</tile>"; 

thanks in advance.

you're using legacy tile template. you're looking in uwp adaptive tile templates, entirely customizable, , don't rely on fixed templates legacy ones (which come windows 8/8.1).

in adaptive tile templates, use hint-style attribute customize text elements rather ids map fixed text blocks. here's first example that's given link above:

<tile>   <visual>      <binding template="tilemedium">       ...     </binding>      <binding template="tilewide">       <text hint-style="subtitle">jennifer parker</text>       <text hint-style="captionsubtle">photos our trip</text>       <text hint-style="captionsubtle">check out these awesome photos took while in new zealand!</text>     </binding>      <binding template="tilelarge">       ...     </binding>    </visual> </tile> 

result:


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -