SfSkinManager and MVVM

Q1: is there an example of SfSkinManager in MVVM application? I have looked in the examples but there is no sample with SfSkinManager.
Q2: Here is my scenario. I have combobox in the title of my application which is loaded with Theme names. the application is based on example given in sample.
the only problem with this approach is using static resources. What I need is load Themes into combobox and select combo item based on stored user preference. When application closes to save the selected item. At this time when I attach binding to SelectedItem of the combobox it gives me error: System.InvalidOperationException: 'Cannot call StartAt when content generation is in progress.' Is there a way to accomplish that?


9 Replies

VR Vijayalakshmi Roopkumar Syncfusion Team April 2, 2021 09:04 AM UTC

 
Hi Mariusz 
 
Thank you for your using Syncfusion Products. 
 
Please find the response for the below queries. 
 
 
S.NO 
Query 
Response 
1 
is there an example of SfSkinManager in MVVM application? I have looked in the examples but there is no sample with SfSkinManager. 
We have prepared a sample for sfskinmanager using mvvm pattern in which we dynamically changing the theme using combobox . Please find the sample for the same from the following location: 
 
2 
Here is my scenario. I have combobox in the title of my application which is loaded with Theme names. the application is based on example given in sample. 
the only problem with this approach is using static resources. What I need is load Themes into combobox and select combo item based on stored user preference. When application closes to save the selected item. At this time when I attach binding to SelectedItem of the combobox it gives me error: System.InvalidOperationException: 'Cannot call StartAt when content generation is in progress.' Is there a way to accomplish that? 
 
We are unable to understood your query. How you are saving the selecteditem on closing. Whether you expecting the previous theme should apply after launching the application or after selecting theme , you expect the application to close. Can you please brief about its requirement clearly by providing any scenario or provide any video to exactly trace the issue that you faced. If possible, kindly provide us issue reproducible sample, it would be helpful for us to check and proceed on it further. 
 
Please let us know if you have any other concerns. 
 
Regards, 
Vijayalakshmi VR 



MJ Mariusz Juszkiewicz April 11, 2021 05:10 PM UTC

Vijayalakshmi,
Thank you for reply it works fantastic. The dilemma I have is when I put the combobox in the title of the Chromeless window.
I have duplicated the same code using Prism and it works fine when the combo box is in the window grid area. When I place the combobox in the title bar I get an error:
when I try to change the theme at run time.
i have attached a sample.

Attachment: BlackBookPrism_3297a199.zip


EM Elakkiya Muthukumarasamy Syncfusion Team April 12, 2021 11:47 AM UTC

Hi Mariusz, 
 
Thanks for your update. 
 
We have checked the reported query “Invalid operation exception thrown in when change the item in ComboBoxAdv” and logged a bug report on this. The patch for this fix is expected to be available on 3rd May 2021. You can track the status of the issue using the feedback link below.  
 
 
We appreciate your patience until then. 
 
Regards, 
Elakkiya 



VR Vijayalakshmi Roopkumar Syncfusion Team May 3, 2021 04:13 PM UTC

Hi Mariusz   
   
Thanks for your patience.  
  
The reported issue Invalid operation exception thrown in when change the item in ComboBoxAdv” has been fixed and included in the patch which can be download from the below links.  
   
Recommended approach - exe will perform automatic configuration.   
   
Please find the patch setup from below location:   
   
  
Please find the patch assemblies alone from below location:   
   
  
  
  
  
Assembly Version: 19.1.0.54 
   
Installation Directions:   
This patch should replace the files "Syncfusion.Shared.WPF” under the following folder.   
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\[TargetFramework]   
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\19.1.0.54\precompiledassemblies\19.1.0.54\4.6   
   
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you must manually copy and paste them to the preferred location or you must run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.   
   
   
Disclaimer:   
Please note that we have created this patch for version 19.1.0.54 specifically to resolve the issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received.  Please let us know, if you are using any other Syncfusion version, we will provide patch in your version.   
   
Regards,   
Vijayalakshmi VR 



MJ Mariusz Juszkiewicz May 6, 2021 02:13 AM UTC

Do you have patch for 19.1.0.59 thats what I updated my app to? if not tell me when will this fix be implemented.


EM Elakkiya Muthukumarasamy Syncfusion Team May 6, 2021 01:28 PM UTC

Hi Mariusz, 

Thanks for your update. 

The 19.1.0.59 is a nuget release version so we could not provide the patch in this version. We will be included this fix in our upcoming 2021 Volume 1 SP1 release it will be expected to be published on Mid of May 2021.We will intimate you once it’s get published. We appreciate your patience until then. 

Regards, 
Elakkiya 



VR Vijayalakshmi Roopkumar Syncfusion Team May 13, 2021 12:43 PM UTC

Hi Mariusz  
  
We are glad to announce that our Essential Studio 2021 Volume 1 Service pack v19.1.0.63 is rolled out with fix related with SfSkinManager and is available for download under the following link. 
  
  
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
  
Regards, 
Vijayalakshmi VR 



MJ Mariusz Juszkiewicz May 14, 2021 03:01 AM UTC

It works fantastic. Thank you.


VR Vijayalakshmi Roopkumar Syncfusion Team May 14, 2021 03:56 AM UTC

Hi Mariusz 
 
Thank you for your update. 
 
We are glad that the reported issue with SfSkinManager has been resolved at your end.  
 
Please let us know if you need any other assistance on this. 
 
Regards, 
Vijayalakshmi VR 
 


Loader.
Up arrow icon