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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:31:17+00:00 2026-05-28T03:31:17+00:00

I got a MasterPage UserControl which contain 3 user controls (and 3 viewmodels) MasterView:

  • 0

I got a MasterPage UserControl which contain 3 user controls (and 3 viewmodels)

MasterView:
 -> MenuView (-> MenuViewModel )
 -> InfoView (-> InfoViewModel )
 -> SliderView (-> SliderViewModel )

In slider view i got a listbox with SelectedItem Property binded to a SelectedItem Property in the view model (SliderViewModel)

when the SelectedItem changes , i want to bubble it all the way to InfoViewModel and to update InfoView.

I can do it with events like i did many times in winforms but i’m looking for best practice way of the mvvm pattern.

another small question is , should i create a viewmodel for the MasterView page as well ? although it does not contain anything beside combining 3 users controls together.

your help will be greatly appreciated

  • 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-28T03:31:17+00:00Added an answer on May 28, 2026 at 3:31 am

    I am not sure about the best MVVM best practise in this scenario but I can think of one way of doing it through MVVM.

    You can create a MasterViewModel and expose a property in masterViewModel for communication between other view models. Like below

    class MasterViewModel
    {
        MenuViewModel;
        InfoViewModel;
        SliderViewModel;
    
        public CommunicationProperty 
        {
           set
           {
           InforViewModel.SomeProperty = value;
           }
        }
    }
    
    class SliderViewModel
    {
        pubic SliderViewModel(MasterViewModel masterViewModel)
        {
            //hold reference of master view model in a variable  
        }
    
        public SelectedItem
        {
            set
            {
                // change the info view model via master view model
                masterViewModel.CommunicationProperty = value;
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have on master page four user controls which are binded to shared presenter.
I have a ASP updatepanel, within that panel I have some controls which got
I've got the current setup: MyMasterPage.Master MyMasterPage2.Master which has MyMasterPage.Master as MasterPage and extends
I have got a masterpage which uses a model @model.topics, I created a partial
In my user control I got this inline CSS in which I have only
I've got an asp.net control inside a masterpage, so I thought the following selector
I've got a custom ASP.Net web user control I've built; done this enough times
Ive got this function as a html helper which should write a javascript function
I've got a page where I have a ModalPopUpExtender which I want to show
If I've got a setup where my master page has a member which is

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.