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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:05:44+00:00 2026-06-01T04:05:44+00:00

A common scenerio we are running into with our current application is where we

  • 0

A common scenerio we are running into with our current application is where we need to route and event through several classes.

Here is a sample class heirarchy.

ActionManager
MainWindow
PresentationManager
MenuManager
Menu
MenuButton

The Menu subscribes to the click event of a MenuButton. It then creates a CustomAction object and raises an event that is subscribed to MenuManager. In the MenuManager event handler it in turn raises an event that is subscribed to by the PresentationManager, and so on.

Here is a sample of what is implemented for the PresentationManager:

    void MenuManager_ActionGenerated(object sender, CustomActionEventArgs e)
    {
          if (ActionGenerated != null)
                ActionGenerated(sender, e);
    }

I was hoping that there would be a way that I could raise the event at the Menu level and receive it at the ActionManager level.

Is it bad practise what I am currently doing?

  • 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-01T04:05:46+00:00Added an answer on June 1, 2026 at 4:05 am

    You can also look into Event Aggregator. A good example can be found at codeproject: Event Aggregator with Specialized Listeners

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

Sidebar

Related Questions

We are running a Spring 3.0.x web application (.war) with a nightly @Scheduled job
So here's the scenario. I've got a script that runs some tests. I need
I need to perform a database restore from my application. Before doing this, I
I'm trying to abstract a common scenario in generated markup where I need a
We'll do this on almost every hit to our site. Hosted at Heroku, running
This is not a common scenario. I am trying to invoke an exception through
Here is a common scenario I Have these Entity User UserId UserName ... UserQuestion
I'm running in a little issue here regarding jsf related dropdown selection. I have
I am developing a WPF application using MVVM architect, and as a common scenario
Common scenario: I have a library that uses other libraries. For example, a math

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.