Click here to Skip to main content
14,694,186 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<b></b>I am using the silverlight toolkit for listpicker but I dont know how to expand it to a new page which should give all the listpickeritems I have added to choose from them. currently it is giving an exception.

here is my list picker xaml code

<toolkit:listpicker margin="190,351,10,0" verticalalignment="Top" x:name="listPicker2" canvas.zindex="2" >
            <toolkit:listpickeritem content="16.5" />
            <toolkit:listpickeritem content="17" />
            <toolkit:listpickeritem content="18" />
            <toolkit:listpickeritem content="19" />
            <toolkit:listpickeritem content="20" />
            <toolkit:listpickeritem content="21" />
            <toolkit:listpickeritem content="22" />
            <toolkit:listpickeritem content="23" />
            <toolkit:listpickeritem content="24" />
            <toolkit:listpickeritem content="25" />
            <toolkit:listpickeritem content="26" />
            <toolkit:listpickeritem content="27" />
            <toolkit:listpickeritem content="28" />
            <toolkit:listpickeritem content="29" />
            <toolkit:listpickeritem content="30" />
            <toolkit:listpickeritem content="31" />
            <toolkit:listpickeritem content="32" />
        </toolkit:listpicker>
Posted
Updated 29-Jul-13 7:15am
v2
Comments
Sergey Alexandrovich Kryukov 29-Jul-13 12:17pm
   
Your problem is not exception (hope you can fix it), your problem is not doing programming. Do you understand what do I mean?
—SA
Nikhil_Malik 29-Jul-13 14:22pm
   
its giving an exception because I lack smthing in programing. how can I add the functionality to listpicker so that it opens up to a new page for selection from the list specified.
NotPolitcallyCorrect 29-Jul-13 14:26pm
   
We could not possibly tell you because we cannot read your mind to know which exception you are getting :-)
Nikhil_Malik 29-Jul-13 14:34pm
   
The exception is : An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.ni.dll
Nikhil_Malik 29-Jul-13 14:37pm
   
if i keep the no of listpickeritems upto 5 then listpicker expands on the same page and works fine
NotPolitcallyCorrect 29-Jul-13 14:37pm
   
Okay so that exception has absolutely nothing to do with the XAML code you present here. You need to debug your code and find out where the exception is coming from.

1 solution

   
Comments
Nikhil_Malik 29-Jul-13 15:38pm
   
Thnx itz working now.. The article on http://www.c-sharpcorner.com/ was awsm. :)
ridoy 29-Jul-13 15:50pm
   
Glad to help you,if you fill that solve your problem,then mark it as answer which will help others,happy coding :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900