If I declare a type in the Page's Resources section of the XAML (for example to use a Converter), I get an exception when the Add-On is loaded.
For the demonstration of the error I will use an Add-On written by you. I highlight the new lines of code in yellow.
In this example I use a Converter whose purpose is to convert a BarsPeriod to String. The steps to follow are:
1.- In the AddOnFramework.cs add the class.
2.- In the AddOnFramework.xaml declare the resource. Although initially intellisense recognizes the namespace and finds the type, then it shows the error that appears.
3.- When the Add-On is compiled and then executed, an exception occurs (in this example the Add-On is empty and the exception is raised when the Add-On is closed).
Note that I do not even use the converter, I only declare it.
This procedure works correctly in standard WPF applications, and I do not understand why the error is due.
Thanks.
Comment