How to change active culture on Windows Phone 7 - windows-phone-7

[Update] I see I need the full example to explain.
In my Windows Phone 7 App, I got a page containing a TextBox bound to a Decimal "Amount":
<TextBox Text="{Binding Amount,Mode=TwoWay}" InputScope="CurrencyAmount"/>
The phone settings are set to German. In german localization, a value like 1234.56m would be formatted 1.234,56 (unlike the US, where it should be 1,234.56).
Problem is, when I enter a value like 1.234,56 in the textbox, the content will be interpreted for US, resulting in 1.23456m, when it should have been 1234.56m.
So, how do I get the binding on the WP7 to use the current phone culture instead of a generic US one? In Germany people expect to enter a colon for decimals instead of a dot.

Aside from the Settings app's region & language section?
The silverlight related localization stuff is all here at msdn.
There's another windows phone 7 specific localization blog post too.

Related

Checkbox behavior in Windows phone 8 like Email in phone

I wanted to know is there any way I can achieve the same behavior of CheckBox we have in our windows phone outlook. In a listbox I have checkbox on every item but it should appear only when I touch and hold.
Please see the windows phone email program where your touch and hold in the left side and see all the checkboxes.
Thanks
Vinod
What you're looking for is the MultiselectList control, which is part of the WP Toolkit...
Here are a a couple of tutorials from GeekChamp to get you started:
Windows Phone Toolkit MultiselectList in depth
How to get the Tapped Item in a MultiselectList control
I would also recommend downloading the source code for the WP Toolkit which contains a sample app that uses all the controls and features:
http://phone.codeplex.com/SourceControl/latest

Windows Phone panorama capital letters?

I need to have capital letters (abbreviation of company name) in the panorama title, but writing in caps results in cutting off top part of letters. How to get the text normally visible in title of panorama?
When in Rome, do as the Romans do.
The design language on Windows Phone has guidelines on how you would do things the way that is recommended. One of them is to keep application titles in lower case.
Although not an official Microsoft blog post, Jeff Wilcox (who does work for Microsoft Windows Phone team as the primary user interface developer though) has an excellent take on the Windows Phone design guidelines as well.
Maybe you should re-think your desire to write in upper case?

Display Arabic content in wp7

I am developing app for window phone 7 .I call one service that return me xml. This xml contain Arabic as well as English content. I can read English content but for Arabic character output look like this ?????????.
I want to display both Arabic and English content in my app please help me
Looking at the Segoe WP family of fonts I have on my computer (which I got by installing the WP7.5 dev tools), the font doesn't contain Arabic characters. This is why you're seeing question marks.
So, seems like you need to use some other available font which contains Arabic characters or embed your own entirely. See this link for a list of available fonts, the editor is a bit weird in the sense that it allows you to use any font even though there's just a limited set of fonts available.
I think the following post may help you:
Indic language display

Windows Phone 7 textBox

I am working in Windows phone 7, and I am learning the basics in it. I basically have a textBox which can get a username in it, and I want it to have a placeHolder like example#abc.com, and on tapping the textBox, the text should disappear and the it should be empty for input.
How do I setup a placeholder ? And if possible, can you help me with the code for email verification ?
Thanks !
I believe the PhoneTextBox from the wp7/Silverlight toolkit is all you need. :)
<toolkit:PhoneTextBox Hint="example#abc.com" />
Some tutorial.
Google windows phone watermark textbox; you'll find several implementations. Here's one off codeplex.

How to filter contacts by name

I'm developing a windows phone 7 application.
I'm trying to understand how I'm supposed to filter contacts by letters. I want to display the keyboard to the user and show all the contacts. If the user pushes "a" everyone with an a in the name should be shown.
Please tell me this is possible. I'm getting more and more frustrated with this API..
It might be easier if you actually show us some code to show where you've got to so far.
It sounds like what you need is the AutoCompleteBox from the Silverlight Toolkit for Windows Phone 7. There's a good post on WindowsPhoneGeek.com: AutoCompleteBox for WP7 in depth, which should show you how to use this control.

Resources