thabet idris

thabet idris

  • NA
  • 35
  • 4.8k

How to disable input for date picker WPF C#

Nov 28 2017 6:13 AM
Is there any way to disable the users from manually typing in date into DatePicker field
 
but it should be able to pick a date by clicking the picker button
 
the XAML:
 
<DatePicker x:Name="DeliveryDate" VerticalAlignment="Center" SelectedDateFormat="Long" SelectedDate="{Binding DeliveryDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }" />
 
Thanks, 

Answers (2)