Introduced
Different Windows Phone 8.0 's new controls
New Controls-Longlistselector
Example
Demonstrating the application of the Longlistselector control
1. Provide data
Controls/cityinfo.txt
101330101= Macau =aomen
101080904 = Abaga =abagaqi
101271901= Aba =aba
101050104 = Ah Cheng =acheng
101081102 = Aershan = Aershan
101131504= Aheqi =aheqi 101130801 = AkzoNobel =akesu 101131503= Aketao-=aketao
101130701 = alar =alaer
101131606= Alataw Shankou =alashankou
101081202 = right flag =alashanyouqi
101081201 = Azou =alashanzuoqi
101131401 = Altay = Aletai
101140701 = Ali =ali
101080603 = Aru =aluqi
101081003= Arongqi =arongqi 101131501= Atushi
101130809= Awati =awati
101050503 = anda =anda
101160208 = diazepam =anding
101140605= Andover
=anduo 101240612= Anfu =anfu 101090220= Anguo =anguo, 101250704= Anhua =anhua 101210203= Anji
101110701 = Ankang = Ankang
Controls/cityinfo.cs
Namespace Demo.controls
{
///<summary>
///City Information entity class
///</summary> public
class Cityinfo
{
///<summary>
///City identity
///</summary> public
string Cityid {get; set;}
///<summary>
///city name
///</summary> public
string name {get; set;}
<summary>
///city Pinyin
///</summary> public
string Pinyin {get; set;}
<summary>
///get the Pinyin first letter
///</summary> public
static string Getfirstpinyinkey of the city ( Cityinfo cityinfo)
{
char indexletter = char. ToUpper (Cityinfo.pinyin[0]);
if (Indexletter < ' A ' | | | indexletter > ' Z ')
{
indexletter = ' # ';
}
return indexletter.tostring ();}}