HotReloadService
Since v2.10Enables hot reload functionality in Eto
Properties
Methods
Initialize
#public static void Initialize()
Initializes hot reload of controls, if it is supported.
Remarks: Code-based hot reload will only work when a debugger is attached. This will also enable support to hot reload xeto and jeto files if in use. Note that at the time of this writing, code based hot reload only works with Visual Studio 2022 on Windows.
WatchFile
#Watches a file for changes and triggers the specified action when it changes.
Parameters:
| control (object) | Control to trigger changes to |
| fileName (string) | File to watch for changes |
| onChanged (Action<object>) | Action to invoke when the file changes |
| sourcePath (string? = null) | Source path of the file |
Returns: true if the file is being watched, false otherwise
Exceptions:
| ArgumentNullException |
WatchFile
#Watches a file for changes and triggers the method specified in the HotReloadAttribute when it changes.
Parameters:
| instance (object) | Object to trigger changes to |
| fileName (string) | File to watch for changes |
| sourcePath (string? = null) | Source path of the file |
Returns: true if the file is being watched, false otherwise
Exceptions:
| ArgumentNullException |