-
I am trying to instantiate a SettingsView on a button press and want to show it as soon as it gets instantiated, but I am getting this error telling me that SettingsViw is a top level and cannot be added as a child. I don't even know where I am adding it as a child and I am confused as to what happened since it worked before some changes I have made to it. This is the ViewModel
This is the View.axaml.cs
This is the View.axaml
And this is how I am instantiating the window
Any help would be appreciated since I've been looking for an hour now and can seem to find the issue :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
it was the tabitem using the content instead of header. I was tired from working on it for hours and didn't see it until I got some rest and a clear mind. |
Beta Was this translation helpful? Give feedback.
-
@SirZeeno did you find a solution? |
Beta Was this translation helpful? Give feedback.
it was the tabitem using the content instead of header. I was tired from working on it for hours and didn't see it until I got some rest and a clear mind.