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.