示例#1
0
        private void AddTabItem(Dictionary <string, object> parameters)
        {
            var item = TabItem.Create(parameters);

            if (item.IsActive)
            {
                _items.ForEach(i => i.SetActive(false));
            }
            _items.Add(item);
        }
示例#2
0
        /// <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();
        }