public HelpWindowViewModel() { _commandService = ServiceResolver.Get<ICommandService>(); var commands = _commandService.GetCommandNames() .Where(command => !command.Item1.Contains("Base")) .OrderBy(command => command.Item1) .Select(command => new CommandHelpViewModel { Name = command.Item1, Description = command.Item2, Properties = _commandService.GetCommandProperties(command.Item1) .Where(prop => prop.Item1 != "Test") .Select(prop => new CommandPropertyHelpViewModel { Name = prop.Item1, Description = prop.Item2, }) .ToList(), }) .ToList(); Commands = CollectionViewSource.GetDefaultView(commands); ClearFilterCommand = new RelayCommand(parameter => CommandFilter = string.Empty); }