I have created a Frame control - Frame1
under Class1
:
public Frame<_> Frame1 { get; private set; }
And defined Class2
for frame page:
public class Class2<TPage> : Page<TPage> where TPage : Page<TPage>
When I call Frame1.SwitchTo<Class2>()
I get a compile error:
Using generic type requires 1 type argument
Is there any way to resolve this?
I am defining Class2
as above as I want to define other classes inheriting Class2
.