How to filter contacts by name - windows-phone-7

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.

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

How to add mulitple screen on one page? Windows Phone 7 application

I am completely novice in Windows phone app development. Till now I have been developing iPhone application. In iphone there is a concept of view and view controller. You can add multiple view on one screen and do hide/show to display multiple screens.
I am searching, How can I achieve same things in Windows phone app development.
For a similar pattern, see MVVM:
How Do I: Use MVVM in a Windows Phone 7 Application?
Windows Phone Mango: Getting Started with MVVM in 10 Minutes
MVVM in real life Windows Phone applications Part1
To hide/show different views/XAML objects/panels, use their name and visibility property, for example:
contentpanel.Visibility = Visibility.Visible;
Windows Phone applications in general follow the Page based Navigation. If you want to achieve a hide/show multiple views in a single page without Navigating to a new page, you can do that with the help of UserControls.
You can define as many UserControls (==views) as you want and then hide are show them based on your requirements in the YourPage.xaml
And additionally, you would better go with MVVM approach.
check this good example for any further details Implementing the Model-View-ViewModel Pattern in a Windows Phone Application

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 create custom pin Start Button to my app?

I want to create my custom pin Start Button to win phone 7.
For example in windows phone 7 i have the button of Marketplace pinned. When i receive update the pin button shows the number of updates i received.
Another example is the calendar, when i create some appointment, these appears in pin button.
I want create something similar. I want a big pin button with some information. Any direction?
The answer to this will probably depend on whether you are targeting Mango or not.
If you are targeting v 7, you will need to look into Notifications. This MSDN article will give you some good information as a starting point.
In Mango (7.1) you can accomplish a lot more manipulation of tiles from inside your app. This MSDN article is a great start point for that.
Please note, however, that your user will need to have the application tile pinned in order to get the behaviour you are describing.

Autocomplete textbox in Windows Phone 7

I'm creating my first Windows Phone 7 application, and I'm struggling to find an autocomplete textbox. Is there an easy way to add one to the toolbox? Or do I need to create my own control?
The one from Silverlight 3's SDK, the AutoCompleteBox, works relatively well on the phone. It requires minimal styling changes to work.
There is a known issue today where selecting an item that pops up requires two taps: one to select and another to "really" select. We should have that issue in the platform (the bug is not in AutoCompleteBox) fixed by the time the phone development experience is ready.
AutoCompleteBox is in the Silverlight Tookit so you have to add a reference to that in your project.
After investigating it appears that there's not an auto-complete textbox control for windows phone 7 applications, so I've had to create one myself...

Resources