Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1045
Calendar in ItemTemplate
posted

Hi experts,

I'd like to make use of xamComboEditor to do something like datapicker, I put a calendar in xamComboEditor's itemtemplate, but i shows nothing on screen, even after I set height of the calendar, it still shows nothing. Please help~

<ig:XamComboEditor Name="xamComboEditor1" IsEditable="True" >
   <ig:XamComboEditor.ItemTemplate >
      <DataTemplate>
          <Calendar Height="60" />
      </DataTemplate>
   </ig:XamComboEditor.ItemTemplate>
</ig:XamComboEditor> 

 

 

 

  • 138253
    Offline posted

    Hello Ming,

     

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

  • 138253
    Offline posted

    Hello Ming,

     

    Thank you for your post. I have been looking into it and I can say that in order to be able to use the XamComboEditor’s ItemTempalte, you have to assign an ItemsSource to the control. Here you can find more information about DataTemplates:

     

    http://msdn.microsoft.com/en-us/library/ms742521(v=vs.110).aspx

     

    Also if you want a DatePicker, you can use XamDateTimeEditor. Please let me know if this helps you or you have further questions on this matter.

     

    Looking forward for your reply.