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
public MainWindow()
{
InitializeComponent();
EventLogTab myEventLogTab = new EventLogTab();
this.mytabcontrol.Items.Add(myEventLogTab);
}
will throw an exception like this :
System.InvalidOperationException: The control Grid already has a visual parent ContentPresenter (Name = PART_SelectedContentHost, Host = TabControl (Name = RBRMainTab)) while trying to add it as a child of ContentPresenter (Name = PART_ContentPresenter, Host = AvaloniaApplication.EventLogTab).
my tabitem style:
To Reproduce
1
Expected behavior
1
Avalonia version
11.2.2.
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
if i enable this in App.axaml:
then add tabitem to tabcontrol like this:
will throw an exception like this :
System.InvalidOperationException: The control Grid already has a visual parent ContentPresenter (Name = PART_SelectedContentHost, Host = TabControl (Name = RBRMainTab)) while trying to add it as a child of ContentPresenter (Name = PART_ContentPresenter, Host = AvaloniaApplication.EventLogTab).
my tabitem style:
To Reproduce
1
Expected behavior
1
Avalonia version
11.2.2.
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: