xaml - XamDateTimeEditor - user should select the date from the dropdown calender only -- WPF/MVVM -


i have xamdatetimeeditor control in xaml(code given below). user able type in date or select calender dropdown. don't want xamdatetimeeditor allow users type in date through keyboard, should done dropdown using mouse.

here code in xaml -

  <igeditors:xamdatetimeeditor x:name="xamdatetimeeditorentrydate"                                      autofilldate="monthandyear"                                      isalwaysineditmode="true"                                      mask="mm/dd/yyyy"                                      text="{binding entrydate,                                                     mode=twoway,                                                     updatesourcetrigger=propertychanged,                                                     validatesondataerrors=true}" /> 

you can handle xamdatetimeeditor's previewkeydownevent , set e.handled proprty true in event handler. way user won't able enter using keyboard.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -