windows-phone-7

Refreshing in RestSharp for Windows Phone

故事扮演 提交于 2020-01-04 04:36:08
问题 I implemented RestSharp succesfully in my WP7 application, but one issue remains: When I load resources from the server (for example a GET request on http://localhost:8080/cars), the first time the collection of (in this case) cars is succesfully returned. When I issue the same request for the second time, I always get the same result as the first time - even when the resources have changed in the meantime. When looking at my server, the second time there is no request issued at all. I

how to display animated pictures in windows phone?

╄→гoц情女王★ 提交于 2020-01-04 03:15:05
问题 I am beginner in windows phone. as well as i know, the windows phone 7 does not support the .gif images and i want to show the animated images like [.gif] image in my windows phone application. so , how can we display the animated image in windows phone 7? Please help me. 回答1: yes. windows phone 7 does not supported the .gif image. And for your reference, please refer this link, Display GIF or Animated Images in Windows Phone i show that animated images in windows phone 7 Application. I Hope

how to display animated pictures in windows phone?

眉间皱痕 提交于 2020-01-04 03:14:08
问题 I am beginner in windows phone. as well as i know, the windows phone 7 does not support the .gif images and i want to show the animated images like [.gif] image in my windows phone application. so , how can we display the animated image in windows phone 7? Please help me. 回答1: yes. windows phone 7 does not supported the .gif image. And for your reference, please refer this link, Display GIF or Animated Images in Windows Phone i show that animated images in windows phone 7 Application. I Hope

Can windows phone 7 microphone detect frequencies in the range of 18k-19kHz?

╄→гoц情女王★ 提交于 2020-01-04 02:52:39
问题 Can the windows phone 7 in-built microphone detect frequencies higher than 18kHz? 回答1: Technically yes, the API supports recording PCM with sufficient quality to express a 18kHz sine wave. Standard POTS lines and even T1 lines generally operate at 8 kHz 16 bit which is mathematically enough to correctly record a max of 4 kHz. And since the mic isn't usually used for anything higher quality than telephony audio, I bet the limiting factor will be the hardware... your mileage will definitely

Operation not permitted on IsolatedStorageFileStream

我与影子孤独终老i 提交于 2020-01-04 02:40:08
问题 I get an error when I open the file after it is created using (var myFileStore = IsolatedStorageFile.GetUserStoreForApplication()) { myFileStore.CreateFile(DateTime.Now.Ticks + ".txt"); } using (var myFileStore = IsolatedStorageFile.GetUserStoreForApplication()) { temp = myFileStore.GetFileNames(); for (int k = 0; k < temp.Length; k++) { IsolatedStorageFileStream file1 = myFileStore.OpenFile(temp[k], FileMode.Open, FileAccess.Read); dataSource.Add(new SampleData() { Name = temp[k], Size =

How to make a part of Stringbuilder content bold?

三世轮回 提交于 2020-01-04 02:12:10
问题 StringBuilder sb = new StringBuilder(); sb.Append( string.Format("{0} |{1} ", Name, Value) ); Display.Text = sb.ToString(); // Display is a WP7 TextBlock control I want to make "Name" as bold. Is it possible to do that ? 回答1: You'll need to put the text into a RichTextBox and have the name as a separate Run in the Paragraph as in this example from the MSDN: // Create a Run of plain text and some bold text. Run myRun1 = new Run(); myRun1.Text = "A RichTextBox with "; Bold myBold = new Bold();

Upload image file in Windows Phone 7 Application to PHP

老子叫甜甜 提交于 2020-01-03 18:19:05
问题 I am trying to upload a picture from the Pictures Library (on WP7) and save it in a folder on the server. On the server, I'm using PHP to receive the file using POST Method. The PHP Code is: <?php $uploads_dir = 'files/'; //Directory to save the file that comes from client application. if ($_FILES["file"]["error"] == UPLOAD_ERR_OK) { $tmp_name = $_FILES["file"]["tmp_name"]; $name = $_FILES["file"]["name"]; move_uploaded_file($tmp_name, "$uploads_dir/$name"); } ?> I've already tried some

How to mask characters such as password in Textbox in Windows Phone 7

◇◆丶佛笑我妖孽 提交于 2020-01-03 17:20:16
问题 Please let me know how to mask characters such as password in Textbox in Window Phone 7. Like this: UserName : okame100 Password : * ** * ** * ** * ** * * 回答1: You need a PasswordBox control: http://www.bondigeek.com/blog/2010/03/29/windows-phone-7-dev-series-textbox-input-scope/ 来源: https://stackoverflow.com/questions/6928005/how-to-mask-characters-such-as-password-in-textbox-in-windows-phone-7

XDocument doesn't appear to exist in System.Xml namespace

只愿长相守 提交于 2020-01-03 08:14:12
问题 I'm having what I think will probably be a really simple problem, in developing my first WP7 app I've come to the stage of accessing my Site's api and parsing the XML, however I'm stumbling just at trying to use XDocument. I search around and found this example code: Load an XML file from a website into XDocument (Silverlight and Windows Phone 7) but the XDocument type does not exist, I understand it is supposed to exist in the System.Xml namespace which I am using, but the error still

Should WebClient instances be reused in Silverlight

五迷三道 提交于 2020-01-03 08:07:08
问题 I'm writing a Silverlight application for Windows Phone 7 which has a class that needs to make multiple requests to WebClient.DownloadStringAsync() Am I better off creating a new instance of WebClient for each request, or is it more efficient to initialise a single instance in a field and use that for each request (making sure to only have one request active at any one time)? public class MainViewModel : INotifyPropertyChanged { private readonly WebClient _wc; public MainViewModel() { _wc =