You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Create the content for the tab
var contentView = new TextBlock
{
Text = "This is a dynamically added view.",
HorizontalAlignment = Avalonia.Layout.HorizontalAlignment.Center,
VerticalAlignment = Avalonia.Layout.VerticalAlignment.Center
};
// Create a new TabItem
var newTabItem = new DragTabItem
{
Header = "New Tab", // Set tab header
Content = contentView // Set tab content
};
// Add the tab to the TabablzControl
TabPrincipal.Items.Add(newTabItem);
// Optionally select the newly added tab
TabPrincipal.SelectedItem = newTabItem;
Hi @egorozh
How to work with it using codebehind, without any viewmodel?
The text was updated successfully, but these errors were encountered: