Page 1 of 1

When use Page and when use UserControl

Posted: 13 Dec 2024, 07:50
by MarioBarbero
I have a doubt and it is when I have to use Page class and when UserControl class. I see that Page class inherits from UserControl.
When do I have to use each one?
    public partial class UserControlTest : Page
    {
        public UserControlTest()
        {
            InitializeComponent();
        }
    public partial class UserControlTest : UserControl
    {
        public UserControlTest()
        {
            InitializeComponent();
        }

Re: When use Page and when use UserControl

Posted: 13 Dec 2024, 13:22
by sfernandez
In Noesis the Page is just a UserControl with a Title property, we didn't implement any of the browser navigation logic. So you can probably stick to UserControls in your project.

Re: When use Page and when use UserControl

Posted: 13 Dec 2024, 14:39
by MarioBarbero
Thank you. I will use UserControl interfaces