简体   繁体   中英

how to implement windows phone style combobox in wpf

I followed this SO question for creating a flat style combobox. It works fine.

I want to implement the combobox with windows phone type of animation effect. how can I do it? Can anybody please guild me on this?

If you really want to make a combobox for your WP8 application, you must install the Windows Phone Toolkit .

Installation instructions are on their website. You can their get it from NuGet or download the source .

Once installed, you will have to add the namespace in your xaml:

xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"

Then you can create a ListPicker like so:

<toolkit:ListPicker ItemSource="{Binding YourBindingForList}" />

I hope it will help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM