windows-phone-7.1

WP7 Toolkit Update Removed GetItemsInView() from the LongListSelector

喜你入骨 提交于 2019-12-01 02:50:48
问题 With the latest update to the Windows Phone Toolkit they have overhauled the internals of the LongListSelector for the Mango release. One of the changes was removing support for the GetItemsInView() function (it now returns an empty list). This function previously returned a list of items that were currently visible on the screen. I was using this to get a reference to the topmost visible item when navigating away from a page so that I could support recovery after a tombstone by using

Usage of ShareMediaTask along with Isolated storage image

落爺英雄遲暮 提交于 2019-12-01 01:49:12
Is it possible to use ShareMediaTask along with the image save on the isolated storage. I tried to implement the same by applying the below given code. But when i run the code the current page flashes and comes back to the same page. var shareMediaTask = new ShareMediaTask { FilePath = "isostore:" + LocalImagePath }; shareMediaTask.Show(); Sorry, currently ShareMediaTask only supports items in the Media Library either in the Camera Roll folder of the Saved Pictures folder. That's done due to security reasons. If for example you use ShareMediaTask and share with another app, that app should

how to write text on a image using windows phone code? [duplicate]

限于喜欢 提交于 2019-12-01 01:09:38
Possible Duplicate: Write text on image in WP7 I have an app and one of the feature I want to add to it is , sending the picture with some text on top of it.IS that possible to code this in windows phone ? Easy way is just rendering a TextBlock with the text on a WriteableBitmap private void RenderString(WriteableBitmap bitmap, string stringToRender) { TextBlock textBlock = new TextBlock(); textBlock.Text = stringToRender; // set font, size, etc. on textBlock bitmap.Render(textBlock, null); bitmap.Invalidate(); } 来源: https://stackoverflow.com/questions/13979607/how-to-write-text-on-a-image

JSON Can't be Deserialized to Object, Needs Array?

ⅰ亾dé卋堺 提交于 2019-11-30 23:58:48
I am trying to take the incoming JSON items and bind them to listbox items but I am told by visual studio that I need to do an Array and not Object? I've never had to do this... Anyone know how? My RootObject: public class RootObject { public string url { get; set; } public string display { get; set; } public List<string> genetics { get; set; } public List<string> price { get; set; } public List<string> brandMaker { get; set; } public string form { get; set; } public string dosornos { get; set; } public string qty { get; set; } public string mfg { get; set; } public string mobURI { get; set; }

Usage of ShareMediaTask along with Isolated storage image

▼魔方 西西 提交于 2019-11-30 21:04:11
问题 Is it possible to use ShareMediaTask along with the image save on the isolated storage. I tried to implement the same by applying the below given code. But when i run the code the current page flashes and comes back to the same page. var shareMediaTask = new ShareMediaTask { FilePath = "isostore:" + LocalImagePath }; shareMediaTask.Show(); 回答1: Sorry, currently ShareMediaTask only supports items in the Media Library either in the Camera Roll folder of the Saved Pictures folder. That's done

Calculate and draw route on Bing Maps control

我们两清 提交于 2019-11-30 15:39:13
in my app for WP7(mango) I need to navigate the user from one point to another. I know there is the Map control that lets you draw staff on it, but how do you ask it to draw the path for you? (based on the specified destination & user's current location - but that keeps changing so how do you update the route if he goes of the way?) To update the map with the users current location, use the GeoCoordinateWatcher and update the position of a databound Pushpin as it changes. Remember to set the minimum distance to something low, like 5 meters. A pushpin like the one on bing maps, can be created

Pressing multiple buttons simultaneously

空扰寡人 提交于 2019-11-30 07:31:38
In my WP 7.1 app I have a page with multiple buttons. I noticed that while any one button is being pressed, no other button can be pressed. How can I overcome this? I need to be able to allow users to press multiple buttons at the same time. You can't handle multiple button clicks at once unfortunately. There is a way around it though. You can use the Touch.FrameReported event to get the position of all the points a user is touching on the screen (I read somewhere before that on WP7 it's limited to two but I can't verify that). You can also check if the action the user is taking (e.g. Down,

How to set the links in a text block clickable in wp7

左心房为你撑大大i 提交于 2019-11-30 07:29:57
I have a text box contain links .the contents in the text are generated during run time.My problem is that the links inside the text is not clickable,how can make all links inside the text block clickable so that when i tap a link it should open the web browser.In android we can set it by using autolink.Is such option is available in wp7 or in wp7.1 mango? Use a HyperLink . <TextBlock> <Run>Pure Text</Run> <Hyperlink Command="{Binding HyperLinkTapped}">http://google.com</Hyperlink> <Run>Pure Text Again</Run> </TextBlock> This is supported from Windows Phone 7.1 (Mango). You can create your own

How to create a continuum animation in Windows Phone 7?

核能气质少年 提交于 2019-11-30 07:19:21
I know there is a continuum transition in windows phone 7 and it doesn't seem to be included in the silverlight toolkit yet. Any ideas how to create one? Thanks in adv. :) UPDATE At last I took some code from Kevin Marshall's excellent post regarding wp7 page transitions and I think this post will give you a good start. :) I'm not entirely sure which animation you're referring to as continuum however if it's the one I think you're talking about then Metro in Motion Part #3 - Flying Titles may be some help. If not there are a few other articles in the series that could help you build your own.

Sqlite on both Windows Phone 7.1 and Windows Phone 8

半腔热情 提交于 2019-11-30 06:58:41
I'm developing an app for Windows Phone 7.1(7.5) - 8 (Must work for both) , in which database connectivity is required. This Application is already realized for Iphone and Android, so I have to use there Database file to the database structure was the same for all applications. Sqlite is used as the database . All Sqlite Clients for Windows Phone are out of date and not supported any more. http://dotnetslackers.com/articles/silverlight/Windows-Phone-7-Native-Database-Programming-via-Sqlite-Client-for-Windows-Phone.aspx http://wp7sqlite.codeplex.com/ http://www.wirebear.com/blog/2010/11/12