在WPF中绑定类的属性至Label控件实现自动更新显示
转载自
https://blog.csdn.net/vanwood/article/details/8077467
class:
public static readonly DependencyProperty _count =
DependencyProperty.Register("count", typeof(int), typeof(DeviceOnlineStatusControl));
public int count
{
get { return (int)GetValue(_count); }
set { SetValue(_count, value); }
}
xaml: