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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:09:36+00:00 2026-05-24T19:09:36+00:00

This is probably a very simple question, but at this time I have myself

  • 0

This is probably a very simple question, but at this time I have myself so confused I can’t see the answer. Simply put, I have a window that contains a content control. I’m using Caliburn.Micro’s conventions to “locate” the view.

The window looks like this:

<Window x:Class="Views.MainWindowView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
        <TextBox/>
        <ContentControl x:Name="MyViewModel" Height="Auto" Background="Blue"/>
    </Grid>
</Window>

The view itself is successfully found, and the screen displays as I expected. However, MyViewModel needs to make a service call to get information based on what is typed into the text box.

So, what I can’t seem to figure out is how one would pass that information from the text box to the view model. I’ve thought of several options, but they all seem to be too much work which makes me think that I’m missing something simple.

Thanks a lot

  • 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-24T19:09:37+00:00Added an answer on May 24, 2026 at 7:09 pm

    Like you said there are a number of things you can do:

    1. You could expose a property on MyViewModel and set it within
      MainWindowView.

    2. You could use the EventAgregator, publish an event from the
      MainWindowView and subscribe to that event from MyViewModel.

    3. Using MEF you could inject a shared resource between the two
      ViewModels, set it in MainWindowViewModel, and be able to access it
      from MyViewModel.

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

Sidebar

Related Questions

All, This question probably has a very simple answer - something I'm overlooking. But
I know this is probably a very simple question, but I can't seem to
there is probably a very simple answer to this very simple question, but i
This is probably a very simple question, but I just can't figure it out.
This probably has a simple answer, but I must not have had enough coffee
This is probably a really simple jQuery question, but I couldn't answer it after
Okay, this is probably very simple but, I have the below checks (not at
Ok I have a question and it is probably very easy but I can
This is probably a very simple question for some, but it has me stumped.
This is probably a very simple question for some, but it has me stumped.

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.