protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); if (!TabContainer.Exists(Name)) { TabContainer.AddTab(this); } }
protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); if (string.IsNullOrWhiteSpace(Name)) { Name = "tab_" + (++tabIndex); } if (!TabContainer.Exists(Name)) { Console.WriteLine("Add Tab:" + Name); TabContainer.AddTab(this); } }