7,679 questions
59
votes
4
answers
135k
views
JSON.NET DeserializeObject to List of Objects
I'm trying to Deserialize object to list of object using JSON.NET lib. My json file is:
[
{
"id": 1,
"name": "Poczta",
"description": "Opis",
"latitude": 52.25197,
"longitude": 20....
62
votes
6
answers
84k
views
Universal Apps MessageBox: "The name 'MessageBox' does not exist in the current context"
I want to use MessageBox for showing download errors in my WP8.1 app.
I added:
using System.Windows;
but when I type:
MessageBox.Show("");
I get error:
"The name 'MessageBox' does not exist in the ...
51
votes
6
answers
32k
views
Disable web page navigation on swipe(back and forward)
On a Windows phone, in IE users can go back and forward by swiping on the screen if the swipe is coming from the edge. This OS level functionality is hampering my webpage's UX.
Is there any js or css ...
28
votes
9
answers
14k
views
App manifest references the image which does not have a candidate in the main package error in windows phone 8.1
I am just creating app package and got the following error
Need help how to resolve this.
36
votes
1
answer
9k
views
Suspending event not raising using WinRT
I'm having a problem with suspending event on Windows Phone 8.1 using WinRT, it does not fire. I don't know why. This is my code:
/// <summary>
/// Initializes the singleton application object. ...
27
votes
3
answers
10k
views
Fill Ellipse with wave animation
I have created an ellipse in Windows Phone 8.1 Silverlight App and UWP both
and I wanted to fill it with animating waves,
For this purpose, I am following this solution
but it is for WPF so I am ...
49
votes
3
answers
27k
views
System.Net HttpStatusCode class does not have code 422
Is there a way to handle http status code 422 gracefully. I am looking for the best practice here. I know that HttpStatusCode is an enum so what i tried is this,
HttpStatusCode Unprocessable = (...
22
votes
4
answers
24k
views
Set StaticResource style of a control dynamically in the code
Let's say, I've got something like this (in MainPage.xaml):
<Page.Resources>
<Style TargetType="TextBlock" x:Key="TextBlockStyle">
<Setter Property="FontFamily" Value="...
21
votes
4
answers
17k
views
c# does not contain a definition for "InitializeComponent" and name "controlName" does not exist in current context
I've been developing a windows phone app in a team since June. Everything worked fine with all the syncs until today.
I synced the project and vs started giving me the errors
"WindowsPhoneApp.MainPage"...
37
votes
4
answers
53k
views
Windows Phone 8.1 - Page Navigation
Coming from Windows Phone 8 I have never thought there will be a lot of changes done to the Windows Phone 8.1 code. Basically I'm just wondering how to do page navigation just like how you would do it ...
13
votes
6
answers
44k
views
How do I use the new HttpClient from Windows.Web.Http to download an image?
Using Windows.Web.Http.HttpClient how can I download an image? I would like use this HttpClient because it is available to use in portable class libraries.
48
votes
3
answers
23k
views
Hide Status bar in Windows Phone 8.1 Universal Apps
How to hide the Status bar in Windows Phone 8.1 (C#, XAML)?
In Windows Phone 8 it was done by setting shell:SystemTray.IsVisible="False" at any page. But its not available in Windows Phone 8.1
15
votes
5
answers
18k
views
Failed to add reference. User canceled out of save dialog (OLE_E_PROMPSAVECANCELLED)
I cannot add a solution reference to a portable class library to my Windows Phone 8.0 apps in Visual Studio 2012. When I try to add it by browsing to the .DLL, then it works. I receive this error when ...
25
votes
1
answer
21k
views
'IBM437' is not a supported encoding name from ZipFile Read Method
I have a problem when my code execute this using:
using (ZipFile archive = ZipFile.Read(File)) //<== Crash Here!
{
foreach (ZipEntry entry in archive.Entries)
{
entry.Extract(...
26
votes
3
answers
22k
views
Windows Phone 8.1 Universal App terminates on navigating back from second page?
I have 2 pages in my Windows Phone 8.1 Universal App.
I navigate from Page1.xaml to Page2.xaml by using a button with the click event code:
this.Frame.Navigate(typeof(Page2));
When I am on Page2, ...
29
votes
8
answers
20k
views
"A specified communication resources(port) is already in use" when attaching the debugger
I have just upgrade my windows phone 8 to windows phone 8.1. When I connect my phone to pc and run my project it gives me
a specified communication resources(port) is already in use by another ...
4
votes
3
answers
2k
views
Convert number to string using Hebrew letters
This is probably an easy one (it may even be a dupe), but I cannot find answer to this - how to print number using Hebrew letters?
I've tried to change app language and/or using format provider:
...
12
votes
6
answers
12k
views
Windows Phone 8.1 emulator stuck at starting OS
I did fresh W10 and VS 2015 install and now when i try running newly created hello world type of app on emulator it doesn't load, all it says is:
after 5-10 minutes it exits and Visual studio ...
25
votes
3
answers
43k
views
ObjectDisposedException on HttpClient
I have a Windows Universal Project with multiple API calls.
One method refuses to work eventhought my other calls work perfectly like this.
I have tried the using keyword thought it would resolve the ...
12
votes
11
answers
12k
views
Windows (phone) emulator 8.1/10 stuck at loading the OS
I've been trying to get the emulator to work for days. Previously I tried the Windows Phone 8.1 Emulator as well as the Windows 8.1 Simulator and both were stuck at loading the OS.
Earlier today I ...
14
votes
7
answers
5k
views
What's the replacement for MarketplaceReviewTask in Windows Phone 8.1 Universal Apps
I've looked everywhere and just can't find a way to launch the Rate and Review from my app. Does anyone know how to launch this task on the new Windows Phone 8.1?
-1
votes
1
answer
22k
views
Get SIM MSISDN & IMSI number in Windows Phone Application
Is it possible to get the SIM MSISDN & IMSI number in windows Phone app development?
I have gone through some of the Q/A but they all are asked a long time ago.
9
votes
2
answers
3k
views
How to add text to Clipboard in Windows Phone Runtime?
previously in Windows Phone 8 we could use Clipboard to share text. It's supported in Windows 8,
Clipboard.SetContent(dataPackage);
But I see it is not supported for Windows Phone Runtime. Is it not ...
16
votes
3
answers
49k
views
Can't set Content-Type header
I'm having trouble setting the Content-Type on HttpClient.
I followed along this question: How do you set the Content-Type header for an HttpClient request?
But still no luck.
String rcString = ...
15
votes
2
answers
17k
views
How to reset a DispatcherTimer?
Those are my declarations and methods of DispatcherTimer:
private DispatcherTimer DishTimer;
private TimeSpan SpanTime;
private void InitTimer()
{
DishTimer = new DispatcherTimer();
...
10
votes
3
answers
37k
views
How to select all text in textbox when it gets focus
In Windows phone, how can I select all text in Textbox when the TextBox has focus?
I try setting the get focus property of Textbox:
private void TextBox_GotFocus(object sender, RoutedEventArgs e)...
3
votes
1
answer
4k
views
How to use Instagram direct API
I want to use Instagram API for the direct feature and don't have more knowledge about OAuth2.0. I know Instagram provides direct API this app is using direct API but I don't know how to implement it. ...
21
votes
3
answers
6k
views
Windows Phone Silverlight 8.1 project app submission error
I submit a test Windows Phone Silverlight Project 8.1 and get this error when submit
The package identity associated with this update doesn't match the uploaded appx: "2e740376-677c-4df8-b1af-...
23
votes
1
answer
19k
views
WPF Radial Progressbar/Meter (i.e. Battery Meter) [closed]
I'm working on an Unified fitness app for Windows 8.1 and Windows Phone 8.1. Ideally one of the core views would feature a daily progress meter. The problem is that I haven't been able to come up with ...
36
votes
4
answers
7k
views
Animate (smoothly) ScrollViewer programmatically
Is there a way to smoothly animate a ScrollViewers vertical offset in Windows Phone 8.1 Runtime?
I have tried using the ScrollViewer.ChangeView() method and the change of vertical offset is not ...
18
votes
3
answers
13k
views
Photo capture on Windows Store App for Windows Phone
Well, my question is simple:
How do I capture pictures with a Windows Store App for Windows Phone 8.1, using the camera?
The samples on MSDN use Windows.Media.Capture.CameraCaptureUI, which is not ...
28
votes
2
answers
12k
views
Device Unique id in Windows Phone 8.1
How to get the device unique id in Windows Phone 8.1? The old way of using DeviceExtendedProperties.GetValue("DeviceUniqueId") does not work for Windows Universal app.
10
votes
6
answers
8k
views
How to detect Windows Phone 8.1 OS version programmatically?
The question in title is not the real problem. I went through many sites and blogs and go to know that Environment.OSVersion gives you the current OS version of the phone using our app. But the ...
11
votes
6
answers
21k
views
Error: This template attempted to load component assembly 'Microsoft.VisualStudio.SmartDevice'
I installed Visual studio 2015 and I'm trying to create a test application for Windows Phone 8.1. When I create a new project, I get this message:
Any suggestions on how to solve this problem?
11
votes
9
answers
42k
views
Getting Error "Unable to connect to a phone. Make sure the Windows Phone IP over USB transport service is running"
I bought a Lumia 630 dual SIM recently and has been trying to register my phone for development, but kept getting this error "Unable to connect to a phone. Make sure the Windows Phone IP over USB ...
27
votes
2
answers
33k
views
Encrypt string with Bouncy Castle AES/CBC/PKCS7
I have been looking everywhere for some sample code on how to encrypt a simple string with the encryption in the title using the Bouncy Castle Framework.
This code will run on a Windows Universal ...
0
votes
1
answer
6k
views
the provided package is already installed and reinstallation of the package was blocked
I'm developing Windows 8.1 Universal application with Visual Studio 2015. After creating app packages successfully, I'm unable to deploy app into Windows Phone device. Facing issue like "the provided ...
8
votes
7
answers
11k
views
Can't Deploy Universal App to Windows Phone 10 Technical Preview
Here's the details:
Created a blank Universal Windows App in Visual Studio 2015
Set to ARM, Debug
Attempt to deploy to a Lumia 925 Running Windows 10.0.10166.0
Phone is in 'Developer Mode'
I unlocked ...
7
votes
3
answers
9k
views
Can Windows Phone 8.1 or 10 applications be created in Visual Studio 2017
Can Windows Phone 8.1 or Windows Phone 10 applications be created in Visual Studio 2017?
Windows Phone 8.1 applications created in VS2015 are not loaded in VS2017. Instead "(incompatible)" text is ...
14
votes
3
answers
13k
views
Read text file in project folder in Windows Phone 8.1 Runtime
I want read one file .txt in root folder of my project into my database at first time application launch, but I don't know how to do that. Anyone know how can I do that, please help me... Thanks
I'm ...
24
votes
5
answers
7k
views
ListView in Windows Phone 8.1 Wobbles while scrolling though long list (XAML)
I'm having issues with scrolling through ListViews in my Windows Phone 8.1 App. Short lists scroll just fine, scrolling smoothly however as soon Virtualization kicks in the entire ListView "wobbles" ...
5
votes
2
answers
46k
views
Reading the response from HttpClient.GetStringAsync
I am working on a Windows Universal app using the new runtime for Windows Phone/Store apps. I am sending a request to a server using the following code and expecting a HTML response back. However ...
15
votes
3
answers
8k
views
Windows Phone 8.1 XAML StringFormat
I am trying to display some text along with binded data, for example, I have the code:
<TextBlock Text="{Binding Shorthand}" Style="{ThemeResource ListViewItemTextBlockStyle}" />
I want to add ...
15
votes
3
answers
12k
views
How can i add AppBar in Windows Phone 8.1
In windows phone 8, its very easy to add an App Bar and manage it, but now i test new windows phone 8.1 SDK to build a project with new Geofencing feature but i don't know how to add an App Bar in the ...
6
votes
1
answer
13k
views
ListView fill the width of parent, screen or whatever [duplicate]
I am trying to display some data from an Observable Collection to a ListView.
Binding is working fine. My only problem I cannot fix is the layout of the ListView.I use a Grid with 2 rows to split my ...
5
votes
2
answers
5k
views
Does anyone know any API for OCRing 7-Segment Display for Windows Phone?
I'm trying to develop a Windows Phone 8.1 App but I need to recognize some numbers from different Displays.
I was following this example:
http://bsubramanyamraju.blogspot.com/2014/08/windowsphone-81-...
17
votes
2
answers
13k
views
Convert an IBuffer to a byte array in Windows Phone 8.1, how?
I'm writing an application for Windows Phone 8.1.
I need to save an UIElement as an image file (I'd prefer JPG or PNG).
I'm using RenderTargetBitmap class to do this.
After calling the method ...
16
votes
1
answer
11k
views
WP 8.1 Runtime code to make phone call, send SMS & send Email (not the Silverlight 8.1)
I'm writing an app which will make a phone call, send sms or email just like the People app in wp 8.1 .
So far I've found a link form msdn which said "Applies to: Windows Phone 8 and Windows Phone ...
6
votes
2
answers
3k
views
Device Status in Windows Phone 8.1
Are there any classes in Windows RunTime APIs to find the current device information(OS info, RAM size, power source) ?
The equivalent class in Windows Phone 8 is Microsoft.Phone.Info.DeviceStatus
Any ...
3
votes
2
answers
2k
views
Windows Phone 8.0 app packaging in Visual Studio 2015 Preview
I have got Visual Studio 2015 Ultimate Preview installation through my students Dreamspark account. I installed it on top of updated Windows 8.1. workstation.
I have Windows Phone 8.0 application that ...