static ContainerWindow() { CloseWindow = new DelegateCommand <ContainerWindowViewModel>((vm) => { ContainerWindow window = GetWindow(vm); window?.Close(); }); }
static ContainerWindow() { CloseWindow = new DelegateCommand <ContainerWindowViewModel>((vm) => { ContainerWindow window = GetWindow(vm); window?.Close(); }); VirtualRoot.On <GlobalLangChangedEvent>("全局语言变更时调整窗口的标题", LogEnum.DevConsole, action: message => { foreach (var item in s_windows) { item.OnPropertyChanged(nameof(item.Title)); } }); }
static ContainerWindow() { CloseWindow = new DelegateCommand <ContainerWindowViewModel>((vm) => { ContainerWindow window = GetWindow(vm); window?.Close(); }); Global.Access <Language.GlobalLangChangedEvent>( Guid.Parse("9EE73F13-F1E1-4B20-86F2-A06B69ED4D45"), "全局语言变更时调整窗口的标题", LogEnum.None, action: message => { foreach (var item in Windows) { item.OnPropertyChanged(nameof(item.Title)); } }); }