private void AddTabItem(Dictionary <string, object> parameters) { var item = TabItem.Create(parameters); if (item.IsActive) { _items.ForEach(i => i.SetActive(false)); } _items.Add(item); }
/// <summary> /// 添加 TabItem 方法 /// </summary> /// <param name="parameters"></param> public void Add(Dictionary <string, object> parameters) { var item = TabItem.Create(parameters); if (item.IsActive) { _items.ForEach(i => i.SetActive(false)); } _items.Add(item); StateHasChanged(); }