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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:58:09+00:00 2026-05-23T08:58:09+00:00

I currently have a fairly straight forward app, my first attempt at MVVM using

  • 0

I currently have a fairly straight forward app, my first attempt at MVVM using Josh Smiths classes, and have been looking at moving it over to Prism v4 using Unity. However I seem to have gotten confused about how to actually pass my model data to the relevant view models when they are separated in different modules.

The app itself has a collection of Document objects each containing a ref to a 3rd party video API instance and a bunch of meta data to describe and annotate the video.

I have written the video handling elements into a separate module that expects its data from an IVideoService. Similarly the documents will be provided, in a different module, by an IDocumentservice that will return the collection of docs, selected doc, etc.

I reference an instance of the IDocumentService in Unity so it can be resolved by any module. However I don’t see how I extract the relevant IVideoService for display when the document being viewed is changed. I don’t want to include any dependencies of the document module in the video module if possible so I assume I just register an instance of IVideoService and post some refresh event.. so the videomodule’s views update.

However that solution wouldn’t work if I had the capability to display two or more docs simultaneously.

In my previous non prism app my viewmodels had a hierarchy that mirrored the model hierarchy and everything was done using binding and datatemplates.

This doesn’t seem to be the way to do it in prism with each module initializing itself and declaring where it should appear. Looking at the various demo apps and code hasn’t cleared this up so I suspect there is something fundamental I’m misunderstanding.

Any enlightenment appreciated!

Regards

  • 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-23T08:58:09+00:00Added an answer on May 23, 2026 at 8:58 am

    What about raising an event when the document being viewed gets changed? The event could pass the relevant IVideoService as part of the event arguments.

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

Sidebar

Related Questions

I currently have a fairly straight forward UI which displays three 250 x 180
I currently have a fairly robust server-side validation system in place, but I'm looking
I have a fairly straight-forward sequential approval workflow that has an EnableModificationActivity that is
I currently have an existing database and I am using the LINQtoSQL generator tool
I have a fairly standard blog app with the usual post and comments controller/models
I'm trying to build a REST-ful API for my app. Currently I have something
I'm fairly new to Git, and have been working with it for only 3
I currently have a fairly long LINQ statement which pulls data from two tables:
I have a fairly complicated NSTextView subclass in one of my projects. I'm currently
I have a fairly large repetitive XML to create using JAXB. Storing the whole

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.