I am using the drag gesture to move elements on a canvas. I am using the pinch gesture to zoom/tranlate the size of the canvas. What I want to do now is move the entire canvas based on the movement of both fingers in a pinch. I know I can do this with the move, but I need that for items on the canvas itself, and sometimes the entire canvas is…
I am trying to make a drawing app. The purpose is simple. Let the user draw something on a canvas with various brush options like square brush,far brush,pencil brush and many more like any other drawing app available in android market. At present I can let the user draw smooth curves using following code:
currentPoint =…
I was hoping it was as easy as referencing my existing libraries to use them with WP7.
However, it complains about not able to load them because of .Net CF when I actually use them.
Do i need to recompile them to .NET CF or something?
I thought the big plus of WP7 was: leveraging your existing codebase...?
How can I leverage my…
How can you tell whether the device is oriented vertically (portrait) or horizontally (landscape)?
Is there an API that simplifies this or do you have to make the determination "by hand" using the accelerometer?
Hi All,
I'm wondering what the "right" way of timing out an HttpWebRequest is on Windows Phone7?
I've been reading about ThreadPool.RegisterWaitForSingleObject() but this can't be used as WaitHandles throw a Not implemented exception at run time.
I've also been looking at ManualReset events but A) Don't understand them…
I was hoping it was as easy as referencing my existing libraries to use them with WP7.
However, it complains about not able to load them because of .Net CF when I actually use them.
Do i need to recompile them to .NET CF or something?
My application sends SMS messages to people, but the numbers entered in as their cell phone are sometimes land lines (this is user error or the user not really knowing if the contact number they have is a cell phone or landline.)
I found a few websites that can tell me if a number is a landline or cell phone, but they do…
I have a databound Listbox bound to a generic list as follows (Provider is a very simple class that just includes a single property (Name).
ProviderList = new List<Provider>();
//Populate list
Providers.ItemsSource = ProviderList;
I can save the selected item with no problem but I can't manage to set the selected…
Hi, I'm trying to download a file from my provider.
The url is protected with basic username and password, and everything is sent over ssl.
So I try to do this:
WebClient proxy = new WebClient();
proxy.DownloadStringCompleted += (o, dscea) => System.Diagnostics.Debugger.Break();
…
I know.. I know, it's only a few hours old.
But how the hell do you get the little page tabbing/cycle (forgot what the official name is) on the top of the page under the app title.
MIX Keynotes made it look like it was a control (or at least what I saw, was @ work).
Anyone who made MIX or knows how they…
After googeling for ages, and reading some stuff about async task in books. I made a my first program with an async task in it. Only to find out, that i can only start one task. I want to run the task more then once. This is where i found out that that doesn't seem to work. to be a little bit clearer, here…
I have a userControl in which I need to know when the user has clicked somewhere outside that control. Is it possible? LostFocus and LostMouseCapture events do not work.
I am trying to use Bluetooth in WP8 to send an image from my app on a device and show it in my app on another device. The receiver has a StreamSocket object to read the data from it like the code below
await _dataReader.LoadAsync(4);
uint messageLen = (uint)_dataReader.ReadInt32();
await…
I would like to format a textblock which is binded to a value, to show "R" before the actuall value, is this possible, cause I cannot directly change the value?
Thank you
<ListBox x:Name="lstbundleListbox"
Foreground="White" Height="320"…
I am writing an app to connect to a third party application using REST web services.
I have a configuration page that asks for an IP, Port, User Name & Password, currently it just blindly assumes you enter the correct details and attempts a connection.
I…
I need to have transparent textbox, in my WindowsPhone 8.1 Runtime application.
I made Background="Transparent" to the textbox, so it is transparent when it is loaded.
But on focus, background color changed to white. I write the following code, to make it…
I am trying to navigate form one page to another page depends upon the login.
If already user logged in, Welcome page should open. Else Log in Page should open.
I am trying like this. The Splash Page is the start up page.
This is a Splash Screen Xaml.cs:…
I have an app where the user is sent to a page with a PivotControl. The SelectedIndex is not known until the user navigates to the page. I'm setting the SelectedIndex, but it causes the PivotControl to start on index 0, then flip through to the index I set. …
I have a little question, I want to change the background of my application with C#.
I tried this code :
var app = Application.Current as App;
var imageBrush = new ImageBrush
{
ImageSource = new BitmapImage(new Uri(imageName, UriKind.Relative))
};…
At some point in the future it will be awesome when you can just tell your computer what to do and it does it - without typing to help those of us with a blistering 11 WPM hunk and peck technique. Siri, a mobile digital assistant using speech…
If you haven’t spent the last week in the middle of the Sahara desert or traveling on a sled in the north pole area you should have heard something about the launch of Windows Phone 7 Series (or Windows Phone Series 7, or Windows Series Phone…