windows-phone-8

Hammock Package , Tweetsharp and C# Windows Phone 8

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-16 19:08:24
问题 I followed this link http://samjarawan.blogspot.co.uk/2010/09/building-real-windows-phone-7-twitter_18.html step by step and when I am running my app, I am getting an error i.e. "Error Calling Twitter". When I searched about it, I found that in this part of code var client = new RestClient { Authority = "https://api.twitter.com/oauth", Credentials = credentials, HasElevatedPermissions = true, SilverlightAcceptEncodingHeader = "gzip", DecompressionMethods = DecompressionMethods.GZip }; I need

Windows Phone 8 ImageSource cannot be serialized Error while sharing image

强颜欢笑 提交于 2020-01-16 13:16:16
问题 i am trying to share an image. I got a picture object and am getting the path from it. When I'm calling the ShareMediaTask it throw following error: System.Windows.Media.ImageSource cannot be serialized. I am still able to share the image, but the app crashes when returning from sharing. Here is my code: PictureModel picture = Singleton.Instance.BearPicture.Model.Images.Where(PictureModel => PictureModel.Bmp.UriSource == (Image_View.Source as BitmapImage).UriSource).FirstOrDefault(); var task

I'm trying to send a picture with phonegap on wp8 but I'm getting an error

老子叫甜甜 提交于 2020-01-16 12:04:52
问题 I'm trying to send a picture, taken in my application, to my remote server using javascript and php, but so far I'm stuck: This is the code from my application function onPhotoDataSuccess(imageData) { alert(imageData);// returns:"/CapturedImagesCache/WP_20130605_021.jpg" //send picture to server var options = new FileUploadOptions(); options.fileKey="file"; options.fileName=imageData.substr(imageData.lastIndexOf('/')+1); options.mimeType="image/jpeg"; var params = new Object(); params.value1

WP8 Can't show listbox item after using hardware back button

末鹿安然 提交于 2020-01-16 11:14:07
问题 I have two ListBox items: one for show all items and another ListBox for show only selected item and now when I am using hardware back button second ListBox item is not showing? What do I need to do to allow the ListBox to be selectable/clickable upon return? Height="72" TextWrapping="Wrap" Name="txtMSG" Text="TextBox" Width="456"/> <!--ContentPanel - place additional content here--> <Grid x:Name="ContentPanel" Grid.Row="2" Margin="15,10,15,0"> <ListBox Name="list_location" Tap="list_location

WP8 Can't show listbox item after using hardware back button

半世苍凉 提交于 2020-01-16 11:13:49
问题 I have two ListBox items: one for show all items and another ListBox for show only selected item and now when I am using hardware back button second ListBox item is not showing? What do I need to do to allow the ListBox to be selectable/clickable upon return? Height="72" TextWrapping="Wrap" Name="txtMSG" Text="TextBox" Width="456"/> <!--ContentPanel - place additional content here--> <Grid x:Name="ContentPanel" Grid.Row="2" Margin="15,10,15,0"> <ListBox Name="list_location" Tap="list_location

Will apps developed for WP 7.1 work on WP8?

此生再无相见时 提交于 2020-01-16 01:54:12
问题 I have already developed an app targeting Windows Phone 8, but it doesn't work on Windows Phone 7.5. To get it working on both platforms, I have decided to target Windows Phone OS 7.1 via Microsoft Visual Studio 2012 instead. Will my app works on both WP 7.5 and WP 8 if I target WP OS 7.1 in VS 2012? 回答1: Windows Phone applications are forward compatible. This means that applications built for Windows Phone 7.x should work on Windows Phone 8. However, this is not a guarantee. Some

Binding listbox in listbox on Windows Phone 8

白昼怎懂夜的黑 提交于 2020-01-16 01:10:30
问题 I want to bind AnswerList in QuestionList . When I run code, only have question list on the screen. <ListBox x:Name="listques" ItemsSource="{Binding QuestionList }"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel> <TextBlock x:Name="quesdetail" Text="{Binding QuestionContent.que_detail}" HorizontalAlignment="Left" Margin="27.669,34.338,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="252.564" Width="419.534" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding

Windows Phone 8 scrolling when keyboard visible

…衆ロ難τιáo~ 提交于 2020-01-16 00:50:24
问题 I've searched loads for an answer to my problem. Basically on my WP8 app, I have an "add record" page and a list of text boxes. I can scroll up and down the full length of the page fine, but when I tap one of the text boxes and the keyboard appears, I can no longer scroll to the very bottom and therefore can't complete the last couple text boxes. Now, if you have a look at the MS calendar app on WP8, the "new appointment" page has a similar thing - when you tap one of the text boxes you can

AccessViolationException while adding item to a list

五迷三道 提交于 2020-01-15 20:12:49
问题 I am developing a Windows Phone 8.0 App in VS2010 and in some point , i decided to make 2 classes (Player,Game) Game.cs public class Game { public string Name { get; set; } public bool[] LevelsUnlocked { get; set; } public bool firstTimePlaying { get; set; } public Game(int numOfLevels) { this.firstTimePlaying = true; this.LevelsUnlocked = new bool[numOfLevels]; } } Player.cs public class Player { public int ID { get; set; } public string FirstName{ get; set; } public string LastName { get;

How to upgrade db from windows phone 8 to windows phone 8.1

£可爱£侵袭症+ 提交于 2020-01-15 11:22:20
问题 I have read that SQL CE is not supported on 8.1 universal apps. I have an app published in market place using SQL CE. I want to make this app as universal app. How do I handle upgrade in such scenario? How do I upgrade SQL CE from silverlight app to SQL lite universal app?? Any ideas? 回答1: Currently I am saving the data into a file. Since the file will remain in the same format on 8.1. I read the file on 8.1, transform the data into my new model and save it in the new db schema. I am using