摘要:
public static class WindowEx { public static void DoEvents(this Window obj) { DispatcherFrame frame = new DispatcherFrame(); Dispatcher.CurrentDispatc 阅读全文
摘要:
public static class CopyEx { public static T DeepCopyByBin( T obj) { object retval; using (MemoryStream ms = new MemoryStream()) { BinaryFormatter bf 阅读全文
摘要:
自定义控件绑定属性需要提前注册这个属性,同时注册对应的回调函数 例如,若要添加信号值属性 在自定义控件中添加保存数据的属性 public double SignalValue { get { return (int)GetValue(SignalValueProperty); } set { Set 阅读全文