I am developing a Winforms application where I need to use tabs. All tabs have the same UI (it will only change the content of text fields). Is it possible to create one template for all tabs?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the UI is the same across all tabs, then you simply need to inform a view that the model is changing. Remove data bindings to old model and add data bindings to new model.
Another way would be to create a single
UserControl. Each tab can reference it’s own instance of the control and each control has it’s own model to which it binds.