WPF数据绑定(二):TextBlock和TextBox的数据绑定

TextBlock和TextBox控件的数据绑定能够经过实现自定义类来完成。this 编写自定义类StringToDisplay,监听TextBlock和TextBox控件的值的变化,StringToDisplay类代码以下。spa public class StringToDisplay : INotifyPropertyChanged字符串     {get         privatest
相关文章
相关标签/搜索