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

Php - Delimiter must not be alphanumeric or backslash -

trac - Modifying workflow to add a status and split on ticket type -

Delphi interface implements -