Eto.Forms now supports hot reload when supported by the runtime/debugger, and even hot reload of .xeto and .jeto files for all other platforms. To enable hot reload, simply add the following to your startup:
and for any control you'd like to support hot reload for, add this attribute to your class, giving the name of the method to call when the class or .xeto/.jeto changes:
[HotReload(nameof(InitializeComponent))]
public class MyControl : Panel
{
void InitializeComponent()
{
XamlReader.Load(this); // or however you populate this control
// other initialization logic that can be re-executed
}
}
As of this writing, only VS 2022 supports code-based hot reload. It appears that the C# Dev Kit for VS Code is getting some love in this regard, but it's not fully there just yet.
2.10.1 What's Changed
Mac: Fix issue with TextArea.ContextMenu by @cwensley in https://github.com/picoe/Eto/pull/2828
Wpf: Fix TextArea.ScrollToEnd() after adding text by @cwensley in https://github.com/picoe/Eto/pull/2829
Fix hot reload for multiple files in the same folder by @cwensley in https://github.com/picoe/Eto/pull/2830
2.10.0 What's Changed
Update to 2.9.0-dev by @cwensley in https://github.com/picoe/Eto/pull/2719
Build updates by @cwensley in https://github.com/picoe/Eto/pull/2720
Allow disposing multiple times by @SlowLogicBoy in https://github.com/picoe/Eto/pull/2722
Wpf: Allow intrinsic key behavior of menu shortcut keys when item is disabled by @cwensley in https://github.com/picoe/Eto/pull/2725
Update to NUnit 4.3.2 by @cwensley in https://github.com/picoe/Eto/pull/2727
Update FileDialog tests to always show Filename/Filenames even when cancelled by @cwensley in https://github.com/picoe/Eto/pull/2729
Mac: Graphics.FillPath() should use the FillMode of the GraphicsPath by @cwensley in https://github.com/picoe/Eto/pull/2728
Don't quit when running tests with the test app by @cwensley in https://github.com/picoe/Eto/pull/2730
Wpf: Fix crash when adding items to a TreeGridView multiple times when it has focus by @cwensley in https://github.com/picoe/Eto/pull/2732
Mac: Setting Form.Owner shouldn't make it visible if previously hidden by @cwensley in https://github.com/picoe/Eto/pull/2733
Mac: Open/SaveFileDialog fixes by @cwensley in https://github.com/picoe/Eto/pull/2738
Mac: Fix double extension for unknown file types by @cwensley in https://github.com/picoe/Eto/pull/2740
Mac: Updates for obsoleted APIs by @cwensley in https://github.com/picoe/Eto/pull/2739
Mac: Make MacCell/RowGridFormatEventArgs public by @cwensley in https://github.com/picoe/Eto/pull/2741
Mac: fix compile error when using net7 sdk by @cwensley in https://github.com/picoe/Eto/pull/2742
Always recurse style changed to children by @cwensley in https://github.com/picoe/Eto/pull/2743
Update issue templates by @cwensley in https://github.com/picoe/Eto/pull/2745
Measure height of DrawText section by @cwensley in https://github.com/picoe/Eto/pull/2748
Mention documentcontrol in tabcontrol documentation by @Miepee in https://github.com/picoe/Eto/pull/2749
Webview messages by @cwensley in https://github.com/picoe/Eto/pull/2752
Don't clear out owner when hiding a form by @cwensley in https://github.com/picoe/Eto/pull/2753
Mac: Fix parenting windows when not initially activated by @cwensley in https://github.com/picoe/Eto/pull/2754
Mac: Re-add obsolete ToEto(NSColor, bool) apis by @cwensley in https://github.com/picoe/Eto/pull/2755
Fix key handling for windows on Mac/Wpf by @cwensley in https://github.com/picoe/Eto/pull/2757
Add ListBox.Border by @cwensley in https://github.com/picoe/Eto/pull/2758
Gtk: Fix incrementing ProgressBar.Value by one by @cwensley in https://github.com/picoe/Eto/pull/2759
Allow Dialog to be disposed after being shown asynchronously by @cwensley in https://github.com/picoe/Eto/pull/2760
New Contributors
@fakeboboliu made their first contribution in https://github.com/picoe/Eto/pull/2770
Full Changelog: https://github.com/picoe/Eto/compare/2.9.0...2.10.1