User avatar
MarioBarbero
Topic Author
Posts: 30
Joined: 10 Dec 2024, 20:04

When use Page and when use UserControl

13 Dec 2024, 07:50

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();
        }
 
User avatar
sfernandez
Site Admin
Posts: 3363
Joined: 22 Dec 2011, 19:20

Re: When use Page and when use UserControl

13 Dec 2024, 13:22

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.
 
User avatar
MarioBarbero
Topic Author
Posts: 30
Joined: 10 Dec 2024, 20:04

Re: When use Page and when use UserControl

13 Dec 2024, 14:39

Thank you. I will use UserControl interfaces

Who is online

Users browsing this forum: No registered users and 8 guests