Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8394887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:10:03+00:00 2026-06-09T20:10:03+00:00

This is a question that involves style more than anything. I’m looking for ideas

  • 0

This is a question that involves style more than anything. I’m looking for ideas that will help me solve a common GUI design problem. The application is done in Winforms and would have rather WPF, the application is already complete but being quite the perfectionist and when working with other people I decided there must be a better way of solving this problem.

How do you encapsulate controls with a set of functionalities? Considering that there may be multiple columns of the same functionality lets say we have the below custom air plane system. This allows flight coordinators to assign certain flight staff to each flight. They might not be interested in all the airplanes of the entire fleet so they have the ability to choose the airplane that they want to view before choosing the staff that are assigned or if there are already assigned staff then it will pre-populate the staff cells.

The current way we have implemented this problem is by using a button for each cell, although this means we have to encapsulate each column with numerous buttons within a class. Each column is represented by a class called “AirplaneCrew” and makes up each assigned staff and the current airplane this handles the data for these columns. Attached to each AirplaneCrew is a AirplaneCrewGUI which encapsulates the column of buttons and then will generate the GUI accordingly. To understand it better I have provided a simple UML, it’s probably not perfect but this is where I lack an understanding of how to intertwine classes with the GUI. If anyone has a book or can provide a summary of how to achieve better practise when working with GUI elements.

enter image description here
A

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:10:05+00:00Added an answer on June 9, 2026 at 8:10 pm

    Both MVVM and MVP separate the view (UI) from the logic.

    The DataBinding in WPF allows for the creation of Templates that ‘generate’ UI based on the data that needs to be presented.

    I expect that these two things are missing from (or are causing a lot of pain in) the current design.

    A flexible UI requires a clear separation of concerns so you know where to change the system when new requirements need to be met and when you do not want to do all the adjustments by hand you will need some logic (runtime or designtime) that will generate the system automatically based on configuration and/or meta data.

    If the current technology does not support these two features you will need to create those (a lot of work), get them from someone else or switch to a different technology.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This a question that is more on the lines of server efficiency and availability.
This question is abit similar to my shared preferences question only that it involves
Found this question that explained a way to communicate between layers. However there is
I have seen this question that talks about getting the last part of a
I found this question that is discussing what I would like to do, but
I found this question that was very useful in learning the basics of the
I have a UIView subclass ( CustomView for purposes of this question) that has
This question is sort of a sequel to that question. When we want to
I found this exam question that I have to tell how the beq instruction
I have this little question that's been on my mind for a while now.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.