private void MoveCategoryUp(IToolboxCategory category) { if (category == null) { return; } var items = _service.GetToolboxItemSource(); var index = items.IndexOf(x => x.Equals(category)); _service.RemoveCategory(category, false, true); _service.InsertCategory(index - 1, category); _toolbox.SelectedNode = category; }