windows-phone-7

Newb: Update XAML Image Element During Runtime (WIndows Phone, .NET 4)

Greetings all, Thanks for reading and sharing any insights. I've created a new simple Windows Phone 7 application. I have two Image objects on the form I would like to update with various .png files. I have included the .png files into my project, and I believe I am building proper URi resources pointing to these files. Uri myImage1UR...

Windows Phone 7 applications - Orientation Change

Hello there fellow developers! I am working on a Windows Phone 7 app and I can't figure out what I believe is a simple problem for the more seasoned ones. Say I have a layout consisting of two elements: a ListBox (filled with an abundance of items) and a TextBlock (providing the user with some basic instructions). I want these to be one...

How do I bind an enum to my listbox?

I have a Silverlight (WP7) project and would like to bind an enum to a listbox. This is an enum with custom values, sitting in a class library. How do I do this? ...

Silverlight Windows Phone 7: Gesture events?

I'm mocking up a wp7 app in Expression Blend and looking for set up an event handler in response to certain gestures. Some Bing-ing shows some people recommending to use "on click" or something and check the time between taps oneself, but it seems like there should be an easier way. Is there an event for Silverlight controls that fires ...

is it possible to make an alarm or countdown timer app?

I'm a complete noob when it comes to WP7. From what I know of it, in WP7 you wouldn't be able to make an alarm clock app. As in, start app, set alarm for an hour from now, close app, app launches and rings alarm after an hour is up. Is this not possible in WP7? Or is there some way of doing it that I'm not aware of? I have seen a worka...

Programmatically enable a disabled checkbox in a Windows Phone 7 app

Good day everyone. I'm writing my first device-specific application which is a Windows Phone 7 panorama app. I'm currently still busy on the UI as I'm playing around with the features then I stumbled upon a problem that I couldn't fix. You see, I have two checkboxes for some sort of login form. One is a "Remember me" and the other a "Sig...

Display Soft Input Panel (SIP) on WP7 programmatically

How can I programmatically display the soft input panel (SIP)/keypad, via code. (I dont have a text-box on which I can specify the InputScope). ...

Windows phone 7 how to get Synchronous http response

I write a class to handle the request to webAnd it has a method which is using WebClient actually to do the main jobwhen the DownloadStringCompleted method has been done,i want to return the value of the response.I want to use that like this: // the pubTimeLine() method return the value //of the request to the web using webclient ...

How can I get data off of my Windows Phone 7 emulator

I have a unit testing framework for WP7 and it runs on the phone. The results are fairly hard to read so I am writing them to an XDocument. My question is, how can I then get this XML file off of the phone and onto my desktop where I can actually analyze the results? What I have done so far is to put a Debugger.Break() line right afte...

read file in c# .net

i m developing an app in windows phone 7 in which i need to read a text file. i write a code for that but when i debug that code, it gives an error "method access exception". same code is working in c# windows form app. i dont know what is the problem. plz suggest me for this and solve this problem. my code is like this: namespace filer...

Silverlight ItemTemplate binding

Hi! I want to set an ItemTimplate according to some property. I've just create a markup, where I set ItemTemplate like this: <controls:Panorama Title="Some Title" ItemsSource="{Binding Modules}" ItemTemplate="{Binding Id, Converter={StaticResource ControlTemplateConverter}}"> <controls:Panorama.Background> <ImageBrush Image...

Windows Phone 7 not reading dutch localization strings

I am trying to localize an app in Dutch, but the emulator doesn't seem to pick up and recognize the Dutch versions of my resource strings. I have a base Strings.resx file with the english translations. Then, I have Strings.nl.resx with the Dutch translations. I also have Strings.es.resx, Strings.fr.resx, and Strings.it.resx. When I cha...

Export Expression Blend project in an accessible way?

I'm mocking up a wp7 app in Expression Blend. I would like to export it in an accessible way, so people without Visual Studio or Expression can view it. I know how to do it for Sketchflow, but it is also possible to do it for a Windows Mobile project? ...

WP7]Dynamic Color for theme awareness OR How to define a dynamic value for a property in a custom resource in App.xaml?

Hi: I'm making an app for windows phone 7 (using Visual Studio 2010 Express for Windows Phone RTM), and i'm having some problems regarding theme (light/dark) awareness especially with colors. Basically i want to do the same thing that the phone does internally when using the staticresource colors/brushes. For example, if i declare: <B...

Silverlight Panorama Control: Control overlap?

In this image, the content from one panorama item bleeds over onto the previous item: How can I do this in Expression Blend / with XAML? Here is my XAML currently: <controls:Panorama Margin="0,0,-1732,8" Grid.Row="1" Title="ODP"> <controls:PanoramaItem Header="new"> <local:StoryList/> </controls:Panor...

Windows Phone: AppBar icons appearing differently on the device

I'm mocking up an app in Expression Blend. The app bar looks fine in Blend, but when I launch the emulator the icon doesn't display properly. The XAML for the app bar: <shell:ApplicationBar x:Name="FavoritesBar" IsVisible="True" IsMenuEnabled="True"> <shell:ApplicationBarIconButton IconUri="/assets/appbar.favs.rest.png" Text=...

How do I bind touch manipulation to a UIElement property on Windows Phone 7?

I would like to have a property of a UIElement be modified when the user swipes vertically on the screen in Windows Phone 7. I can see how to do it using the OnManipulationDelta override but it seems like that should be a Xaml binding of some sort that would accomplish it in mark-up. Can you bind properties to touch manipulations? ...

book for windows phone programming..??

I am new to windows phone programming...any good book to start..so that i can learn the essentials...or any other good website to start with??? ...

Set in Silverlight an image to specific location

I am working on a WP7 app. Well on one of the pages I would like to have a question mark available for users to select. Only trouble I am having is keeping it in a set location. If real estate is available, I want it to be at the bottom right corner all the time. But if the user should need to scroll, I want that item to have to be scrol...

How can I change the color of an image in silverlight/WP7 (Color Mask)?

I have a toggle button with a png that has a transparent background and a black foreground. If the button is selected then I want the black color of the image to change to a color chosen by the user. Is there a way to do this in Silverlight and/or wp7? So for example: <ToggleButton> <Image Source="MyImage.png" /> </ToggleButton> ...