Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
306 views
in Technique[技术] by (71.8m points)

c# - How can I create a custom live tile in Windows Phone 8.1?

I wanted to ask how it's possible to achieve something like this (first wide tile):

http://oi59.tinypic.com/149p6s8.jpg

I know that there are only a limited number of live tile templates and this is the list I found on Microsoft's website:

http://msdn.microsoft.com/en-us/library/windows/apps/hh761491.aspx

There isn't any template that looks like what I'm looking for, so is there any other way to create a custom tile specyfing text size and position? Thank you!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

On Windows Phone 8.1 (or Windows 8.1) you can use the RenderTargetBitmap class. It has a method called RenderAsync() that takes a UIElement object as parameter. You can then use the RenderTargetBitmap object as an ImageSource to display it in the tile.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...