摘要: 本文没有什么技术含量,单实例启动基本上也是一个做烂了的功能,一搜网上一大把,这里主要是顺便练习一下wpf的附加属性而已。 代码如下: class SingletonWindow{ //注册附加属性 public static readonly DependencyProperty IsEnabledProperty = DependencyProperty.RegisterAttached("IsEnabled", typeof(bool), typeof(SingletonWindow), new FrameworkPropertyMetadata(OnIsEnabled 阅读全文
posted @ 2011-07-01 16:10 x喜德盛 阅读(630) 评论(0) 推荐(0) 编辑