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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:00:45+00:00 2026-06-05T14:00:45+00:00

I have a WPF Prism Application with e.g. several Customers i want to edit.

  • 0

I have a WPF Prism Application with e.g. several Customers i want to edit. So i have 5 Tabs for 5 customers for example.
Each customer has 5 subtabs, like setting, details etc.

When I load a Customer or update it I want a prism event published to every subtab gets updated.
The only problem is: the other subtabs will get updated with the same customer aswell… which is not the plan 😀

So is it possible that only the active tab and those viewmodels can subscribe to the event, or something like this?

Thanks for help!

  • 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-05T14:00:46+00:00Added an answer on June 5, 2026 at 2:00 pm

    I did something like this a while back

    I can’t remember exact details, however the tabs subscribed to events with a LoadConsumerMessage, and the message had two extra properties in addition to the usual message properties: a Id field and an IsHandled field.

    If I wanted a specific tab to load the consumer, I’d populate the Id with the id of the tab I wanted. For example, to load a Customer in the current tab I’d use

    // Id was typically a Guid
    var event = new LoadConsumerEvent() { Id = this.Id; };
    

    Then in the subscribers that process the event, I’d ignore the event if it didn’t match

    if (e.Id == Guid.Empty || e.Id == this.Id)
    {
        // Load Customer
    }
    

    If I wanted only the first available tab to handle the event, I’d set the IsHandled property in the first subscriber, and ignore the event if it was ever true

    if (e.IsHandled)
        return;
    
    // Do processing
    
    e.IsHandled = true;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have the beginnings of a modular wpf application built using prism. We want
hi we have a PRISM WPF MVP application, we would like to have a
I have a WPF application that is written using MVVM Prism. It has a
I have a WPF Desktop application using Prism 4, in my bootstrapper i have
This relates to Composite Application Guidance for WPF, or Prism. I have one MainRegion
I have an application which I am developing using WPF\Prism\MVVM. All is going well
I'm looking for a WPF prism with ribbon application samples and tutorials. I have
I have an application all done in WPF, using MvvM/Prism/Unity and Remote as datasource.
I am creating an application using WPF which is using Prism framework. I have
I have an application written using Prism 4.0. It has lots of Views which

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.