public KernelOutputKeywords() { if (WpfUtil.IsInDesignMode) { return; } this.Vm = new KernelOutputKeywordsViewModel(); this.DataContext = this.Vm; InitializeComponent(); VirtualRoot.Execute(new LoadKernelOutputKeywordCommand()); }
public KernelOutputKeywords() { if (WpfUtil.IsInDesignMode) { return; } this.Vm = new KernelOutputKeywordsViewModel(); this.DataContext = this.Vm; InitializeComponent(); this.OnLoaded(window => { window.BuildEventPath <KernelOutputKeywordLoadedEvent>("刷新Vm内存", LogEnum.None, this.GetType(), PathPriority.BelowNormal, message => { this.Vm.KernelOutputVm?.OnPropertyChanged(nameof(KernelOutputViewModel.KernelOutputKeywords)); }); }); VirtualRoot.Execute(new LoadKernelOutputKeywordCommand()); }