Exception handling occurs in PresentationFramework.dll for unhandled exceptions of type "System.Windows.Markup.XamlParseException" in WPF.

Source: Internet
Author: User

There was an exception when I made a project a few days ago:

Unhandled exception of type "System.Windows.Markup.XamlParseException" occurs in PresentationFramework.dll

Additional information: An exception was thrown when providing a value on "System.Windows.Markup.StaticResourceHolder". ", the line number is" 8 "and the line position is" 33 ".

Description of the phenomenon:

When the interface is processed, a listbox is added to handle the received data, and details are displayed when you click one of the items in the list. So I added a button to the style to handle the click command. The data source is reloaded when the command for the button is bound. and the dictionary file of the style that writes the listbox is loaded in the App.xml so that no error is made during the editing process. However, the above exception is reported at the time of execution.

Processing method:

Load the dictionary file in the local XAML, solve the problem!

Cause: not clear. Do not know why the global resources do not, if there is sensible, hope to give relevant advice. Thank you

  

Exception handling occurs in PresentationFramework.dll for unhandled exceptions of type "System.Windows.Markup.XamlParseException" in WPF.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.