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

  • SEARCH
  • Home
  • 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 8957827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:04:44+00:00 2026-06-15T15:04:44+00:00

We have a WPF application which is primarily a charting application. There are approximately

  • 0

We have a WPF application which is primarily a charting application. There are approximately 30 charts. Each chart has its own table in a database which holds configuration information for the chart. Each chart has an class in the app containing configuration information related to the chart.

We have an interface in our app (IChartConfiguration) which each chart configuration class implements. It allows the app to work with any particular chart configuration in a consistent and similar manner.

The ‘problem’ we have is that each time we need to add a property to the interface, for a new chart that adds a new configuration property we haven’t already dealt with, we have to go back to each chart configuration class, that doesn’t already have this new property implemented (most of them usually) and add it. to satisfy the interface implementation. This isn’t a huge burden, but it seems to me there must be a better way to deal with this.

Is there a better way to handle this?

  • 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-15T15:04:45+00:00Added an answer on June 15, 2026 at 3:04 pm

    Your problem lies elsewhere, the ‘problematic’ behavior you are experiencing isn’t problematic at all. It is the intended use of interfaces. By implementing an interface you are stating, ‘this class supports this interface’. If you wouldn’t update all classes that implement that interface you are no longer upholding this contract.

    The main question you should be asking yourself is whether the configuration property you just added makes sense for the other charts. If it doesn’t it shouldn’t be specified in one common interface.

    Just a few alternatives worth exploring:

    • Having one main interface and extending others from it.
    • Abstract classes with common implementations.
    • Dividing behavior across multiple interfaces.

    Without knowing exactly what the differences are between your charts, I can’t recommend any one approach as being the best.

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

Sidebar

Related Questions

I have a DataGrid in a WPF application which has for its ItemsSource a
I have an WPF application which has a local rdlc report which show receipt
I have a WPF application which has a DirectX component within it. This component
I have a WPF application which has a main window composed from several custom
I have a WPF application which so far has been client only, but now
I have a wpf application which has combo box and multiple text boxes. On
I have a C# WPF desktop application which uses SQL Compact 3.5 as its
I have a WPF application which saves its data to XML files in a
I have an WPF application called app1 which has a windows named window1. When
I have a WPF application which connects to a remote database over internet and

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.