Selasa, 03 Juli 2012

wpf set datepicker read only


may be you can do like this

<DatePicker Height="25" HorizontalAlignment="Left" Margin="302,6,0,0" Name="datePicker1" VerticalAlignment="Top" Width="180" SelectedDateFormat="Long" Focusable="False" Background="#FF6AA5DF" />

you just need to add Focusable="False"


and cursor will not enter into datepicker, but mouse still working

:)

Tidak ada komentar:

Posting Komentar