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

The Archive Base Latest Questions

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

Question: How can you pass an instance of an object from the view model

  • 0

Question: How can you pass an instance of an object from the view model to a converter along with the value to be converted to a converter?


Info: I’m working on an inventory program for people on our factory floor who receive incoming shipments. While receiving a shipment they will mark down who the shipping company was and who the driver was. To do this I want to have set up a pair of combo boxes. When they select the shipper combo box and select the shipper the driver combo box will reflects this change.

My plan is to have a list of shippers (who have a list of drivers) in my ShipmentViewModel that the shipper combo box binds to. This list of shippers is only a list of GUID that i pull up from the database. the shipment’s shipper will have a separate property for the shipper that is selected as well as the driver selected.

What I would like to do is pass the instance of the shipper list to the converter along with the GUID of the shipper(Gotten from the ShipmentVM). The converter compares the GUID to the list of shippers and returns to the combo box a instantiation of the ShipperVM. the driver combo box is the bound to the ShipperVM’s list of drivers. Pass this list along with the driver’s GUID(Also gotten from the ShipmentVM) to another converter which returns the driver’s name.

I’m programing in Visual Basic and XAML according to the M-V-VM schema.

P.S. Saying “You can’t pass more than 1 argument to a converter.” is a totally legitimate response. I just need confirmation. I’m starting to think that this is the case…

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

    If you need to pass multiple “things” to a converter, what you actually want is a MultiValueConverter, which can accept N number of input values.

    http://msdn.microsoft.com/en-us/library/system.windows.data.imultivalueconverter.aspx

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

Sidebar

Related Questions

Following up from this question: How can I unlock a file that is locked
Question Can I build a image database/library that has an e-commerce style checkout system
Simple question: Can a swing frame be completely modal ( block all others windows
Simple question: Can I mix in my desktop application Java and JavaFX Script code?
this question can create a misunderstanding: I know I have to use CSS to
Here is the question: Can TortoiseSvn work on Windows 2008 without turning off User
We are using SQL Server 2005, but this question can be for any RDBMS
This is a question you can read everywhere on the web with various answers:
[The only similar question I can find was answered long ago and contains a
Question My question is how can you teach the methods and importance of tidying-up

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.