live-tile

Can I update a live tile in Mango using local data?

天大地大妈咪最大 提交于 2019-12-19 09:11:14
问题 I have a Mango WP7.5 app that uses a local SqlCe database. I would like to add a LiveTile update that shows info taken from the local DB based on current day and month. All the samples that I've found update the background by downloading remote images from servers but I would simply need to make a local database query and show a string in my tile. Can I do it? How? 回答1: Yes, you can. You have to generate an image containing your textual information save this image to isolated storage and

WriteableBitmap Memory Leak?

青春壹個敷衍的年華 提交于 2019-12-18 12:12:52
问题 i am using the code below to create a live tile, based on an UI element. It renders the uiElement on a WriteableBitmap , saves the bitmap + returns the filename. This method is run in a windows phone background task agent an i am running into memory limits. private string CreateLiveTileImage(Canvas uiElement, int width, int heigth) { var wbmp = new WriteableBitmap(width, heigth); try { wbmp.Render(uiElement, null); wbmp.Invalidate(); var tileImageName = _liveTileStoreLocation; using (var

How are live tiles made in Windows 8?

时光毁灭记忆、已成空白 提交于 2019-12-18 10:16:05
问题 I've searched the samples, the developer site, the getting started and the enhancing bla bla bla pages. Even using some search queries on Google, I can't seem any information on live tiles in Windows 8. How do I create a live tile in Windows 8? What languages can be used for that? C#? XAML? 回答1: http://msdn.microsoft.com/en-us/library/windows/apps/br211386 You can use either C# or VB + XAML or HTML/JS or C++. That was the big announcement at the BUILD conference and the whole point of WinRT

How do I create a WP8 Live Tile with a custom layout?

喜欢而已 提交于 2019-12-14 03:55:16
问题 I'm looking to create a Live Tile which is similar to the Iconic tile but allows me to use a custom Count value (i.e. non-integer string). The closest I've come is that I must create the contents using a bitmap and then use that image as the tile. Unfortunately I don't know how this is commonly done. I'm looking to create tiles similar to the one that's described in this question (though this question is orthogonal to my issue): Custom live tile rendering issue on Windows Phone (7/8) In short

Why is identifier for secondary tile invalid?

[亡魂溺海] 提交于 2019-12-13 16:27:42
问题 I am trying to update a Windows 8 secondary tile directly using XML. However, I keep getting an exception that the identifier for the tile I pinned is invalid. I even tried pulling the identifier directly from Windows and then substituting that back into CreateTileUpdaterForSecondaryTile , but I'm still getting the same exception. Here's my code: public async static void UpdateSecondarySectionTile() { string tileXmlString = "<tile id='SecondaryTile-7-0'>" + "<visual>" + "<binding template=

Read .xml File into XmlDocument

早过忘川 提交于 2019-12-13 02:37:43
问题 I have a live tile template such as: <tile> <visual version="2"> <binding template="TileSquare150x150Text02" fallback="TileSquareText02"> <text id="1">Text Field 1 (larger text)</text> <text id="2">Text Field 2</text> </binding> </visual> </tile> I can read it into an XmlDocument like so: StringBuilder sb = new StringBuilder("<?xml version=\"1.0\" encoding=\"utf-8\" ?><tile>"); sb.Append("<visual version=\"2\"><binding template=\"TileSquare150x150Text04\" fallback=\"TileSquareText04\"><text

How can I remove live tile title in a Windows Phone 8.1 application?

时间秒杀一切 提交于 2019-12-12 20:12:45
问题 I'm building a wide live tile using TileWide310x150Image template in a BackgroundTask, which should show only a wide image, no text or else. This is the template I'm using: <tile> <visual> <binding template="TileWideImage"> <image id="1" src="image1.png" /> </binding> </visual> </tile> However, application's name is still there and I can't find anything to remove it in the Manifest as it was possible on Windows Phone 7 and 8. Is there any way to remove it? 回答1: In the tile notification XML,

Universal app in windows : In Windows RT app not displayed transparent tile

佐手、 提交于 2019-12-12 02:02:50
问题 I have just started to develop in universal app. I have developed app in Windows 8 store apps and also developing Windows Phone 8 and Windows Phone 8.1 (SilverLight) Apps. Question is related to universal app in Windows and Single UI which is created in App. Share folder. 1. I have a transparent Image as Icon but still it display white background check below images I - > Package.appxmanifest II - > Display in start menu . 回答1: You can't have transparent tiles in Windows Store apps. 来源: https:

Live Tiles not Updating

旧城冷巷雨未停 提交于 2019-12-11 18:08:32
问题 I'm trying to create a background agent that periodically updates a user's Live Tiles on Windows Phone. Currently, my code for the agent is: string where = ""; private GeoCoordinate MyCoordinate = null; HttpWebResponse webResponse; ... protected override void OnInvoke(ScheduledTask task) { System.Diagnostics.Debug.WriteLine("Invoked"); findMe(); NotifyComplete(); } private void ResponseCallback(IAsyncResult asyncResult) { HttpWebRequest webRequest = (HttpWebRequest)asyncResult.AsyncState;

Background agent doesn't run when battery saver mode is on

早过忘川 提交于 2019-12-11 12:11:42
问题 I'm using a PeriodicTask that works flawlessly, but it doesn't run if the battery saver mode is on, even though I've allowed the app to run in the background in this state via the Battery Saver app. Any ideas what may be causing it from not running? I should add that I'm generating a new front and back live tile image using Telerik's LiveTileHelper control inside the background agent, and that a http request is made too (the app is a weather app). This is for a Silverlight Windows Phone 8 app