摘要:
Prism框架下的自定义路由事件和命令绑定 BaseCode XAML代码: View Code CS代码: public partial class PrismCommandEx : Button { public PrismCommandEx() { InitializeComponent(); } //定义一个路由事件 ClickTimeEx private readonly RoutedEvent ClickTimeExEvent = EventManager.Regis... 阅读全文
摘要:
此文档仅仅是一个BaseCode,已做后续查阅XAML代码: View Code CS代码: public IM_ImageButton() { InitializeComponent(); FrameworkElement.DefaultStyleKeyProperty.OverrideMetadata(typeof(IM_ImageButton), new FrameworkPropertyMetadata(typeof(Button))); this.IsEnabledChanged += new De... 阅读全文