windows-phone-7

Silverlight Windows Phone Databinding -- noob question

I have a basic Windows Phone List application, with code like this in the MainViewModel class // CODE THAT WORKS -- Items.Clear(); foreach (var itm in e.Result) Items.Add(itm); Count = Items.Count; // CODE THAT DOES NOT WORK -- I'm trying to understand WHY Items = e.Result; The databinding Xaml looks like this: <DataTemplate...

How to display rows with embedded tables in Windows Phone 7?

I'm working on an app that has rows in the following format. I've numbered the rows for clarity. The rows alternate background, so even rows are all one color and odd rows are another. I've it working using a grid containing x number of rows, and within each row i create another grid with two rows and two columns to organize the data. I'...

Transition between phone pages.

Hello. I'm developing a Windows Phone application. Is there anyway to animate transition between phone pages? Now, I'm using this to navigate between pages: NavigationService.Navigate(new Uri("/Views/SelectComponent.xaml", UriKind.Relative)); Thanks. ...

Windows Phone 7 Bluetooth/Wi-Fi

I would like to create application for Windows Phone 7, which will be communicating with desktop application via Bluetooth/Wi-Fi. Is there any API in Silverlight, which allows to use Bluetooth/Wi-Fi programatically? ...

Getting the currently logged-in Windows Live Id (Windows Phone 7)

I know Windows Phone 7 requires you to enter you Windows Live Id on startup. Is there a way to get access to information about that account from my Silverlight app installed on the phone? Thanks, ...

Drawing Bezier path in XNA for Windows Phone 7.

Hi, I am very new to Windows Phone 7. I am writing a sample game in which I want to move the Image randomly. While discussing with one of my friend, he told me to use Bezier path. I search in the net to understand Bezier path concept. It looks like it will suit for my solution. But I did not found any sample code which will do this....

Need to transform a rectangle's color in Windows Phone 7

I have a rectangle, and I have a storyboard: <Storyboard x:Key="PressAndHoldColorBar"> <ColorAnimationUsingKeyFrames Duration="0:0:10" FillBehavior="Stop" Storyboard.TargetName="rectWarning" Storyboard.TargetProperty="Fill"> <LinearColorKeyFrame KeyTime="0:0:0" Value="Green" /> <LinearColorKeyFrame KeyTim...

Is there a way to programmatically cancel editing a text box?

In my windows phone 7 App I have a single line textbox. When the user presses {ENTER} I want to accept the textbox value and switch the textbox back into normal non-edit mode. Basically, is there a way to programmatically cancel editing a textbox? I have tried force the Visual State Manager into Normal mode which does change the v...

Whats the best way of persisting data to Isolated Storage on Windows Phone 7?

I want to persist objects into Isolated Storage, so far I could think of these ways: Serialize them into an xml file when saving and then serialize them back when saving. Use an Object DB. Doubt abounds about a good or recommended one (Examples are Perst, winphone7db and Sterling DB) Anyone can suggest some best practices? ...

How do I let a user browse HTML/WebSite content without launching the browser (need an inline browser)?

I'm creating an app on Windows Phone 7 that lets folks read offline HTML content. Is there a way to show an inline browser or HTML viewing control? ...

Windows Phone 7 clear cookies

Is there any possibility to clear cookies generated by WebBrowser control in Silverlight on Windows Phone 7? ...

How to know if a music is currently playing on Windows Phone 7 ?

Hello, I am currently building an application for Windows Phone 7 which has to play music with the MediaPlayer. However, I would like to know whether the phone is already playing some music, to ask the user if he want to play also my app's. How could I get this information? Thanks. ...

How can I have a list selection like the theme accent color picker in Windows Phone 7?

In my windows phone 7 app, I would like a "depressed state" when the item is held on as in the themes, accent color setting for my lists. How can this be accomplished? ...

Getting Started with Windows Phone 7

This is a community wiki list of Windows Phone 7 resources. Feel free to edit/add/etc. General Information App hub - central place for windows phone/xbox development tools/tutorials/info http://www.microsoft.com/windowsmobile/en-us/default.mspx http://developer.windowsphone.com/ http://windowsteamblog.com/Windows_Phone/ Programming Gui...

Binding A Value in Header WP7/Silverlight

Noob question. :) I'm trying to add Margin to a Header through out my app and dont want to have to manually add that in all my views and I'll need to have various HeaderText. I know i need to add this to the App.xaml and i can get the Margin applied but I can't seem to get the Text to Bind. My Header Looks like this currently: ...

ListBox.ItemTemplate with a custom control template inside DataTemplate

Hello. I'm developing a Windows Phone application. I have defined a ListBox.ItemTemplate's DataTemplate as follows: <ListBox Margin="10,10,8,8" x:Name="ChoicesList"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel /> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ItemTemplate> <DataTemplate> <G...

How do I use InputScope PhraseList or EnumString on Windows Phone 7 textbox?

I have found plenty of tutorials demonstrating InputScope values of email, phone number, name, etc. But nothing that addresses my specific problem. I want the user to be able to select a value from an enum or a list of strings. I'm trying to imitate the behavior found in the emulator under Settings > region & language, for either the ...

What is the proper way to perform page navigation on ListBox selection changes

I'm trying the MVVM Light Toolkit. Though I still think having multiple ViewModels for such small apps is overkill, I like the concepts. What I still can't quite understand is how (or I should say "what is the recommended way") to navigate from one page to another when the selection changes in a ListBox. The big problem with this toolki...

Get the Windows Phone 7 Application Title from Code

I want to access the Title value that is stored in the WMAppManifest.xml file from my ViewModel code. This is the same application title that is set through the project properties. Is there a way to access this from code using something like App.Current? ...

Windows Phone 7 App Quits when I attempt to deserialize JSON

I'm developing my first windows phone 7 app, and I've hit a snag. basically it's just reading a json string of events and binding that to a list (using the list app starting point) public void Load() { // form the URI UriBuilder uri = new UriBuilder("http://mysite.com/events.json"); WebClient proxy = new WebClient(); ...