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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:51:24+00:00 2026-05-27T07:51:24+00:00

I have an idea for an application which I’m not sure if possible, I’d

  • 0

I have an idea for an application which I’m not sure if possible, I’d appreciate your insights:

I’d like to have a ToolBar in my Shell, where every module that is loaded can add its buttons. The Shell will also have content regions that show the modules’ relevant views.
Some modules share the same regions though, is there a mechanism in Prism that can help with removing buttons that are currently irrelevant?
For example, if ModuleA adds “Get Help” button and ModuleB adds “Send Message” button and they share the same region (only one of them is visible at a given time), when ModuleA is visible, I’d like the “Send Message” button temporarily removed – or at least deactivated – from the ToolBar (but back in the same position when ModuleB‘s view is activated).
Does this approach fit when using MVVM?

Thanks.

  • 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-27T07:51:25+00:00Added an answer on May 27, 2026 at 7:51 am

    It is possible with MVVM and prism. I am doing something similar where I have a switchboard of buttons and it will be populated from a list. Each button represents a form and clicking the button obviously opens that form. I created and ISwitchboard interface that each form implements that desires to be part of the Switchboard. Therefore, each ISwitchboard Interface Item implements ShowDialogForm, and a WPF command etc.

    It would be too cumbersome for this post to explain all details that you need to do. However, these are the basic principals by which my code works:

    1. In my bootstrapper I override the GetModuleCatelog() method to add any modules I wish. Each module represents an application (form) that will be opened from the switchboard and must inherit from an interface I created so the view model knows how to open it or whether to show it when it needs it. You may not need to use the modules for what you want but that’s your design choosing. That said, if your buttons will open applications, you will need modules.

    2. My view model then exposes a list of available modules that use my custom interface that have been added using prism. I am able to get the list of modules through the IModuleCatalog interface which I pass into the VM’s constructor. The list is an observable collection. If I want to implement user rights, then I can restrict the list in that way if I wish.

    3. My view then has an itemscontrol which binds to the switchboard list. I can present them how I wish from there. I created an item template to be displayed for each item in the list and it is bound to the Command exposed by the SwitchboardItem interface.

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

Sidebar

Related Questions

I have an idea for a simple application which will monitor a group of
We have a silverlight application which uses a dispatcher and I would appreciate any
I have an application which I would like to enable push notifications on. I
I have a legacy PSVM application which I'd like to redirect its logging output
I have idea to write errors from my application to the Windows Event Viewer
Anyone have idea how to pass value from iPhone application to the REST-Webservice using
I have this idea for a free backup application. The largest problem I need
I have an idea and I want to apply it to my Application (C#
I have what I believe is a killer idea for an application. By definition,
does any of you have any info/idea on how can I test my application

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.