Different Windows Phone (34) 8.0 new CONTROLS: Longlistselector

Source: Internet
Author: User

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 ();}}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.