windows-phone-7

PureMVC and Navigation with Silverlight (C#) for Windows Phone 7 (WP7)

I've used PureMVC before with AS3, and am playing around with WP7 so thought it would make sense to try the C# port (http://trac.puremvc.org/PureMVC_CSharp/) The problem I'm having is that the samples (Login/Employee Admin) don't use the NavigationService to change states within the application - they simply hide/show controls when need...

wp7 / Silverlight] How to animate a ListBoxItem on SelectionChanged?

I'm developing an app (VisualStudio 2010 Express for Windows Phone). I have a listbox with images and a storyboard with an animation (a projection) that I want to apply to a specific listboxitem/image when the SelectionChanged event gets fired (well not immediatly but inside the event handler). How can I "link" my animation to this spec...

RestSharp v. WebClient?

I'm building a Windows Phone 7 Silverlight app. Is there any reason to use RestSharp instead of WebClient? I've looked around on the RestSharp site, but it's not immediately obvious what the benefits are. ...

Downloading content from wp7 to pc?

What capabilities are available for downloading content from the windows phone 7 device to a pc? For example can a user access files saved by an app by connecting it to a pc, or perhaps through wifi connection? ...

Files in IsolatedStorage keep getting deleted. Is that expected?

I’m storing user state in an xml file in IsolatedStorage. When I run my app in the emulator I notice that these files often disappear. Everything works fine when the app is running – it seems to be when the app restarts (it happens when if keep the emulator open or not). Is Windows deleting my files in IsolatedStorage to save space?...

Can't access the Application buttons from c# (Windows Phone 7)

I'm writing a Windows Phone 7 app and want to programmtically access my Application bar buttons when the page loads. But these always appear to be null. I've tried accessing the button in the following events: Page Contructor (after call to InitializeComponent) Page's `Loaded' event handler The Application Bars StateChanged event han...

How to publish content to Facebook from a Windows Phone 7 device

I'm writing a Windows Phone 7 App and would like to be able to push content from my app to the users facebook profile, comments, pictures etc. I have started reading the documentation but it all talks about have a web site, which I don't have on a phone. I think i'm missing something, really basic. Is there away to do this with c# fr...

What is the best strategy to manage different screen resolutions in Windows Phone 7 ?

Hello, As I know, not all WP7 have 480 x 800 pixels in resolution. What is the best strategy to manage different screen resolutions in Windows Phone 7 ?? If I hardcode the width, height, margin, etc. in the xaml, will it be messed when the phone does not support 480x800 resolution ?? Let's share your thoughts. Thanks. ...

WP7 GPS information broadcast

Is there a way to get Windows Phone 7 to “broadcast” its physical location automatically? I’m trying to work around the fact that the GPS data will only be available to my app when the app is actually running. Ideally, it would somehow be possible for the user to configure the phone to continuously broadcast the location at intervals to...

Wp7 Listbox Scrolling issue in PivotItem - Can't stay on very last item, fixed height does not help

I have a simple listbox with more items than fit on the screen. If you scroll to the last item it is shown but then drops back off the screen - I can't leave it in view. After an hour of Googling it seems to be a known issue in early versions of the Listbox but it still seems to be the case in the latest tools. There also seems to be a p...

Play an audio file in Windows 7 Phone

Hi I am working on Windows 7 based application development in Silverlight. I have not been able to find a way to play a an audio file in windows 7 phone programmatically. I have been googling it since past few days but i could not get any solution of that. There is a class SoundPlayer in C# but i guess its not available in Windows 7 Phon...

Is it possible to install Windows Phone 7 tools in VS2010 Pro without Express

Hi Guys I have VS2010 Pro installed through DreamSpark. I really don't want anything more than I need on my PC, but the WP7 SDK insists on installing VS Express for development. Can I just install the SDK without VS Express? ...

How to make sectioned listbox in Windows Phone 7 ?

Hello, I am making a grid (table) showing dynamic data in Windows Phone 7. I need to different sections of grids like a sectioned UITableView in iPhone. How to make sectioned listbox in Windows Phone 7 ? Any idea ? Thanks ...

How to localize iPhone(monotuch) and Windows Phone 7 application altogether?

I want to build application both for Widows Phone 7 and iPhone using .net stack. As being rationale I want to avoid to double code this logic. Is it possible to use resx files in both platform for this, or are there any good viable solution so I can reuse code base on both platforms? Any good advice or best practice if anyone stoped on ...

Drag'n'Drop sortable Listbox für Windows Phone 7

In a Windows Phone 7 application I got a ListBox containing a few items. I want the user to be able to sort the items in the ListBox by just touching and dragging them (on the left part of the ListBox template). How would I implement this? Is there a standard way or control to get this kind of drag and drop functionality (preferably eve...

Service development framework solutions for Windows Phone 7

I've been trying to get Thrift to work with WP7, but has put it on hold preliminary. I'm now looking for other solutions to this and would like to get some feedback on which solution to choose, if any. Any suggestions is much appreciated, so don't hesitate :) ...

Thread problem in Windows 7 Phone

Hi I am working in windows 7 phone based app using silverlight. I have following methods in one of my UI classes, GameScreen.xaml. I am calling startTimer method in the constructor GameScreen. Problem is that when the updateTime method is called and timeLabel.Text = "Time left: 00 : " + time; line is executed, the program throws Una...

Implement NumericUpDown spinner control on Windows Phone 7?

I need a control to enter small numbers on Windows Phone 7 and would like to have some kind of endless spinner control like the one for entering day and month and the date setting of the device. Is there a standard control to spin through these kind of selections? Or at least some way how to build this kind of control? ...

ASCIIEncoding In Windows Phone 7

Is there a Way to use ASCIIEncoding in Windows Phone 7? Unless im doing Something Wrong Encoding.ASCII Doesn't Exist and I'm needing it for C# -> PHP Encryption (As PHP Only Uses ASCII in SHA1 Encryption). Any Suggestions? Thanks. ...

WP7 silverlight custom control using popup

Hi guys, I'm creating a custom datepicker, I have a textbox, once clicked it opens a calendar within a popup. What I want to do is change the size of the popup so it shows my whole calendar, but I can't manage to change it..., I've tried using Height, Width, MinHeight, MinWidth... but it doesn't work, the popup keep showing with a fixed...