public MenuCheckedRoutedEventArgs(RoutedEvent routedEvent, object source, IMenuToggleButton menusource) : base(routedEvent, source) { MenuSource = menusource; }
//激发路由事件,借用Click事件的激发方法 protected void OnCheckedChanged(IMenuToggleButton button) { MenuCheckedRoutedEventArgs args = new MenuCheckedRoutedEventArgs(CheckedChangedRoutedEvent, this, button); this.RaiseEvent(args); }