locked
Can we put Datepicker in combox? RRS feed

  • Question

  • Can we put Datepicker in combox?
    if yes ,tell me how.
    Monday, July 28, 2014 8:32 AM

Answers

  • Hi,

    DatePicker control is used to create a visual DatePicker that let user to pick a date and fire an event on the selection of the date.

    You could do like below code shows you:

    <StackPanel x:Name="LayoutRoot" Background="White" >
            <TextBlock HorizontalAlignment="Center" Text="choose date" Margin="5"/>
            <ComboBox x:Name="myCombo" Width="320" Margin="10">         
                <ComboBoxItem>
                    <StackPanel Orientation="Horizontal">
                           <sdk:DatePicker Height="23" Width="120"/>
                        <TextBlock Margin="2" Text=" to " />                
                        <sdk:DatePicker Height="23" Width="120"/>
                    </StackPanel>
                </ComboBoxItem>
            </ComboBox>
        </StackPanel>

    Below is an article introduceing Silverlight DatePicker Control, please have a see:

    http://www.c-sharpcorner.com/uploadfile/mahesh/silverlight-datepicker-control/


    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.




    • Marked as answer by Jonny_D Monday, August 4, 2014 1:26 AM
    Tuesday, July 29, 2014 1:52 AM