top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

WindowsPhone: Making listpicker in ExpansionMode with more than 5 items(C#) ?

+1 vote
384 views
WindowsPhone: Making listpicker in ExpansionMode with more than 5 items(C#) ?
posted Mar 16, 2015 by Saravanan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

By default for more than 5 items, ListPicker switches to full screen mode.But if you don't want full screen mode,then we need to set ItemCountThresholdProperty after 'InitializeComponent();' in c# like this

ListPickerDataSync.SetValue(Microsoft.Phone.Controls.ListPicker.ItemCountThresholdProperty, 10);

enter image description here

Note:ItemCountThresholdProperty will not work if you set it using xaml

answer Mar 18, 2015 by Jdk
...