In WP7 how to force the ListPicker to show in full mode (or send a tap)?

I need to programmatically force a (WP7 toolkit) ListPicker to show its list in full mode. How can I do that (or how to send the tap gesture or click to indirectly do the same)? Thanks!

Upvotes: 0

Views: 1307

Answers (1)

MrMDavidson
MrMDavidson

Reputation: 2735

You can set the ExpansionMode of the ListPicker to your desired style. Via XAML

<toolkit:ListPicker x:Name="MyListPicker"
                    ExpansionMode="FullScreenOnly"
                    >
  ....
</toolkit:ListPicker>

Or in code;

MyListPicker.ExpansionMode = ExpansionMode.FullScreenOnly

Hope that helps.

Upvotes: 5

Related Questions