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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:36:12+00:00 2026-05-27T06:36:12+00:00

I have the following situation where an Exception thrown in a ViewModel does not

  • 0

I have the following situation where an Exception thrown in a ViewModel does not bubble up to the Application_UnhandledException in App.xaml.cs.

I have an ObservableCollection in the ViewModel bound to the ItemSourceProperty in a ComboBox. The SelectedItemProperty of the ComboBox is bound to a property in the ViewModel.

When the users selects an entry in the ComboBox the property is correctly called in the ViewModel. A bit of logic is performed and another property (call it property2) is set in the ViewModel. However, there is an unhandled exception in property2. The exception just “disappears” – it does not get raised on the UI thread.

Any suggestions for how to generally fix this issue or an approach to catch exceptions on any thread?

Note that we have a custom built MVVM framework. At first, I thought it was an issue with our framework. After many hours debugging, I decided to download Prism4 (http://www.microsoft.com/download/en/confirmation.aspx?id=4922) and see if a similar scenario could be reproduced in the StockTrader reference application.

I can reproduce the exact same scenario! I would be happy to provide details on how to set up the exception in Prism4.

Any help or pointers on a general approach to catch ALL unhandled exceptions in Silverlight is greatly appreciated.

Regards,
Travis

  • 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-27T06:36:12+00:00Added an answer on May 27, 2026 at 6:36 am

    Since the runtime allows you to use exceptions for validation purposes, the runtime’s get-value-for-binding operation is in one big try-catch block.

    Take a look at System.Windows.Data.BindingExpression.UpdateValue() in ILSpy for details (in System.Windows. WPF version may be easier to understand (UpdateSource)).

    I don’t think its possible to customize the behavior of the runtime to rethrow your own exceptions. You can see from the code that it does rethrow some critical ones.

       OutOfMemoryException, StackOverflowException, AccessViolationException, ThreadAbortException
    

    Since other exceptions are not rethrown, they are, in fact, handled.

    I think your solution is to either capture the trace, or have your own exception handling in property setters.

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

Sidebar

Related Questions

I have following situation: I have loged user, standard authentication with DB table $authAdapter
I have following situation. A main table and many other tables linked together with
I have following situation. In a constructor of a pseudo class I attach a
I have following situation (simplified, of course): MyDomain.groovy: class MyDomain { MyAnotherDomain anotherDomain //
I have following situation, String a=<em>crawler</em> <em> Yeahhhhh </em></a></h3><table; System.out.println(a.indexOf(</em>)); It returns the 11
I have following situation: String a = A Web crawler is a computer program
I have the following situation: I built an Access form with a subform (which
I have the following situation: class A { public: A(int whichFoo); int foo1(); int
I have the following situation: A user will define a certain filter on a
I have the following situation: I have a certain function that runs a loop

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.