How to install Silverlight DatePicker Control for ReadOnly?

How to install the control System.Windows.Controls.DatePickerused in a Silverlight project in ReadOnly?

There seems to be no properties that I can set in Xaml or code.

+3
source share
4 answers

Why do you need it?

DatePicker is an illustrious combo box that shrinks a calendar, not a list. If it becomes read-only, will it really be a read-only text field?

< > , , , , Active, , .

0

datepicker ReadOnly.

.. "" . 3 :

  • Normal
  • ( )
  • ReadOnly ( ... , )

3 , ( ) "" .

( )... - , -)

+1

, DatePickerTextBox. DatePicker. DatePicker, . , .

<Style TargetType="prim:DatePickerTextBox">
  <Setter Property="IsReadOnly" Value="True"/>
</Style>
+1

( - )?

-1

Source: https://habr.com/ru/post/1706720/


All Articles