windows-phone-7.1.1

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 =

Compatibility between Windows Phone 7.1 - 7.8 apps and Windows Phone 8 devices

跟風遠走 提交于 2020-01-03 04:27:42
问题 Do Windows Phone 7.1 - 7.8 apps run reasonably well on Windows Phone 8 devices? Is there any reason in terms of compatibility for me to choose one over the other? 回答1: You will find the official documentation about WP 7.1 and WP 8 platform compatibility in the following link: App platform compatibility for Windows Phone Although in general any WP7 app will run without problem in a WP 8 device, this documentation addresses some cases where the behavior may be different. So, if you don't use

Out of memory exception in WP7

戏子无情 提交于 2019-12-21 20:24:01
问题 When I am trying to save some images to my IsolatedStorage there is an Out of Memory exception occures. If the image count is more than 20 this error occurs. I am downloading all these images and save them in a temp folder in isolated storage. When I am trying to save these images from temp folder to a folder named myImages in isolated storage, this error occurs. Each photo is read from temp and write to myImages one by one. When some 20 or 25 photos are saved to myImages then this error

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

微笑、不失礼 提交于 2019-12-19 04:47:26
问题 This question already has answers here : Closed 6 years ago . 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 ? 回答1: 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; //

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

亡梦爱人 提交于 2019-12-19 04:47:08
问题 This question already has answers here : Closed 6 years ago . 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 ? 回答1: 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; //

Highlighting the details of middle UserControl Item of a wp7 ListBox as shown in Image

守給你的承諾、 提交于 2019-12-13 08:47:29
问题 I am having a Horizontal listbox having usercontrol(150 width and 150 height as dimensions) as items. I am displaying 3 items in listbox at a time. My question is how can I detect the middle item while scrolling so that as i scroll left or right i can display the name and other details of middle listbox item in texblock placed above it. Please refer the image uploaded. Thanks in Advance. 回答1: Try this http://silverlightcarousel.codeplex.com/ http://wpfcarousel.codeplex.com/ 回答2: It seems you

WP7, WP8 How to set several ResourceDictionaries to use custom FontFamilies

喜你入骨 提交于 2019-12-12 01:57:24
问题 I want to set custom fonts for some controls, so if I set a font inside the only one ResourceDictionary and use it in styles then everything works just fine . But this approach is not fine for me, because I need to have font declarations in a separate dictionary then styles that are using them. In App.xaml I have made several Resource Dictionaries <Application ...> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Resources

image stream to base64 string in WP7

邮差的信 提交于 2019-12-12 01:32:25
问题 in my wp7 application i am selecting image from media library and i want to get base64 string of that image because i am sending it to my wcf service to create image on server. the code for getting base64 string is as follows: void taskToChoosePhoto_Completed(object sender, PhotoResult e) { if (e.TaskResult == TaskResult.OK) { fileName = e.OriginalFileName; selectedPhoto = PictureDecoder.DecodeJpeg(e.ChosenPhoto); imgSelected.Source = selectedPhoto; int[] p = selectedPhoto.Pixels; int len = p

TextTrimming not working

萝らか妹 提交于 2019-12-11 09:04:43
问题 I have data binding to a listbox, and texttrimming property set to WordEllipsis, but it doesn't seem to work. The textblocks are showing text as if they do without the texttrimming property set. This is my xaml code. Please help. <Grid> <Grid.Resources> <application:ViewModel x:Key="ViewModel"/> </Grid.Resources> <TextBlock Height="75" TextWrapping="Wrap" Text="Click on Settings to search for quotes (by author or by query)." VerticalAlignment="Top" TextAlignment="Center" FontSize="26.667"/>

Unable to show alert via Javascript in WP7 web browser control

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 08:11:48
问题 I am trying to show alert box using javascript in a webpage using web browser control in WP7. The alert is not popping up. Is there anything wrong in the code or WP7 doesn't support it at all? <phone:WebBrowser Name="browser" IsScriptEnabled="True" ScriptNotify="browser_ScriptNotify" Source="Default.html"/> Inside Default.html <html><br> <head><br> </head><br> <body onload="onLoad()"><br> <script type="text/javascript"><br> function onLoad() {<br> alert("hello");<br> }<br> </script><br> <