Beispiel #1
0
        protected override async Task OnInitializedAsync()
        {
            await base.OnInitializedAsync();

            if (!TabContainer.Exists(Name))
            {
                TabContainer.AddTab(this);
            }
        }
Beispiel #2
0
        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);
            }
        }