My UserControl包含一个文本框、一个按钮和一个MonthCalendar。我能够将数据绑定到用户控件内的Textbox,但是,我想在UserControl本身上实现数据绑定,而不是引用控件内的文本框。
<System.ComponentModel.Bindable(True)> _
Public Property BoundDate() As DateTime
Get
Return _currentSelectedDate
End Get
Set(ByVal value As DateTime)
SetDateTime(value, True)
End Set
End Property