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 950051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:30:12+00:00 2026-05-15T23:30:12+00:00

[Sorry for the title, I really didn’t find a good one, if anyone has

  • 0

[Sorry for the title, I really didn’t find a good one, if anyone has an idea, please edit, thanks!]

Hello,

I’m looking for a pattern / best practice for the following situation (just an example).

Imagine an editor for rectangles (just e.g. adding, resizing, removing rectangles). All rectangles shall have the same color, however this general color shall be changeable. The rectangle color shall be set using the editor class, something like

editor.RectangleColor = Red

The color shall however not be changeable directly on the rectangles, because this would probably allow an individual color for every rectangle.

What’s the best way to realize this? Thanks in advance for any hint!

  • 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-05-15T23:30:12+00:00Added an answer on May 15, 2026 at 11:30 pm

    I think Observer pattern should help in this situation.

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

Sidebar

Related Questions

Sorry for the vague title but I really didn't know what title to give
sorry, for the cryptic title i didn't find any better summary for my problem.
Sorry for the lack of precision in the title, I didn't really know what
First of all, I'm terribly sorry for the title. I really had no idea
Sorry for the title, I really didn't know how to say this... I often
Sorry for the poor title. I really have no idea how to describe this
First of all, sorry for the title. Someone please propose a better one, I
I am sorry for the title but I really do not know how to
sorry for the confusing title, its really hard for me to explain what i
Sorry for the vague title, as I really can't explain this problem succinctly. Basically

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.