I am using MVVM along with Unity IOC containers, everything is DataTemplate based, meaning that I load various ViewModels into a bound ContentView in the MainWindow.xaml. I can switch to a MV with an SfChart and the chart displays as intended, however, when I attempt to switch from the MV with the SfChart back to another MV then I receive the exception {"This Freezable cannot be frozen."}
The chart is using a xaml resource dictionary, however, I ensured that each Brush is setup NOT to allow freezing, like so:
<SolidColorBrush
x:Key="SeriesInterior3WithOpacity"
PresentationOptions:Freeze="False"
Color="#78B146C2" />
I'm getting the impression that the code for the SfChart is not actually checking the "CanFreeze" property and just defaulting to freezing but hopefully I am just missing a property that needs to be set.