We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

visual studio xaml hotreload

I Have noticed on a lot of controls, that when trying to do a simple update of a value on a control ie a width setting, then click save which should update the ui, VS says the hot-reload was successful but the ui is not updated. I know the VS hot reload is fickle at best, but is there a way to get the syncfusion controls to play nicely with hot-reload.

An example is your demo of SfNavigationDrawer, trying to update drawer width in xaml.

Regards
Steve

3 Replies

SS Suganya Sethuraman Syncfusion Team January 4, 2021 11:54 AM UTC

Hi stuff,

Greetings from Syncfusion.

We have analyzed your requirement. We would like to let you know that all Syncfusion controls support hot-reload. Only the Xaml changes reflected in the hot-reload. If you use the C# code, it will not be reflected in the hot-reload. We have checked DrawerWidth of SfNavigationDrawer with hot-reload, DrawerWidth has updated correctly. Please have a Video and Sample for your reference.

Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Nav_HotReloader796360854

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Navigation_Width1706491155

Could you please provide the following details,

1. What are the syncfusion controls you are using.

2. What are APIs that don't work with hot-reload

This will be helpful for us to investigate further and provide you a better solution at the earliest.

Regards,
Suganya Sethuraman.
 



LV Laurent Vande Weyer March 25, 2021 01:37 PM UTC

Hi Suganya Sethuraman,

I have the same issue here... Every time I am editing some XAML sine I put the SfNavigationDrawer, the HotReload freeze and I have errors in my output terminal :

[HotReload] (2021-03-25 14:26:32.2): INFO: Reloaded: 'ReloadChange in Views/Dashboard/DashboardPage.xaml', ignoring 1 unsupported edits:
[HotReload] (2021-03-25 14:26:32.2): INFO: In Views/Dashboard/DashboardPage.xaml:
[HotReload] (2021-03-25 14:26:32.2): INFO: No line info - Exception has been thrown by the target of an invocation.

I am using inside the SfNavigationDrawer DrawerContentView;
  • Stacklayout,
  • SfButton

And inside the ContentView ;
  • Custom control,
  • Grid,
  • SfButtons,
  • SfBorders,
  • Image,
  • ScrollView,
  • Label,
  • SfCalendar

The version of Syncfusion controls I am using is v18.4.0.46.

I did a gist on GitHub here to help you and see my code.

Thank you very much for your help!
PS: it could be cool to have the possibility to put styled code snippets here, would be easier and more readable! 


SS Suganya Sethuraman Syncfusion Team March 26, 2021 12:57 PM UTC

Hi Laurent,

Greetings from Syncfusion.

We have analyzed the reported issue. We have prepared a sample based on the code snippet provided. We are afraid that we could not be able to reproduce the issue. Please have the sample and video for your reference.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/NavigationHotReload-1519789858

Video:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/NavigationHotReload.mov-1393865998

Could you please check our sample and let us know if you still facing the same issue? If not, please modify our sample to reproduce the issue and revert us back with the following details which will be helpful for us to check on it and provide you the solution as soon as possible.
 
1.      What are APIs that don't work with hot-reload 
2.      In which platform issue was reproduced. Please provide device information if you are using an Android device.

 
Regards,
Suganya Sethuraman.
 


Loader.
Up arrow icon