Freezable cannot be frozen

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.


3 Replies

SC Scott August 6, 2021 04:22 PM UTC

Also, I tried setting  PresentationOptions:Freeze="True" and I see the same behavior.



YP Yuvaraj Palanisamy Syncfusion Team August 8, 2021 05:29 PM UTC

 
Greetings from Syncfusion. 
 
This is a general update to let you know that our support team has taken out your query and they are starting to work on it. We will share the possible solution with validated details on or before August 10th, 2021 EOD.  
 
Regards, 
Yuvaraj. 



YP Yuvaraj Palanisamy Syncfusion Team August 9, 2021 01:49 PM UTC

Hi Scott,

 
Thanks for your patience. 
 
We have analyzed your query and we have prepared the sample based on your requirement “Switch over the MV to another MV with SolidColorBrush in Resource”. The reported issue was not able to reproduce at our end. Please find the test sample from the below link. 
 
  
Could you please check the sample and please revert us the modified sample with issue reproduced state which will be helpful to serve you better solution at the earliest.  
 
Regards, 
Yuvaraj 


Loader.
Up arrow icon