In your XAML you are attempting to create an instance of PageBase
by using the local:PageBase
syntax. But it is an abstract class and cannot be created, hence the error.
To create a custom user control you would normally create the type without abstraction and then define it as a UserControl
in its corresponding XAML with the type as the x:Class
name. Hence it is a UserControl
but the underlying type is whatever x:Class
defines it as.
To consume the UC you would simply include it in another window/control. At this point it needs to be a creatable type since you cannot create abstract instances.
I think you are mixing up your syntax in your XAML. You're trying to declare the UC and consume it at the same time which won't work. Refer to the following tutorial here on how to properly create a user control. Fixing the XAML and changing the UC to not be abstract (or not try to use it directly but instead deriving another class from it, like your TermsPage
would resolve the issue.