2.10.1
New Features
Hot Reload
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:
#if DEBUG
Eto.HotReloadService.Initialize();
#endifand 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 #2828
- Wpf: Fix TextArea.ScrollToEnd() after adding text by @cwensley in #2829
- Fix hot reload for multiple files in the same folder by @cwensley in #2830
2.10.0 What's Changed
- Update to 2.9.0-dev by @cwensley in #2719
- Build updates by @cwensley in #2720
- Allow disposing multiple times by @SlowLogicBoy in #2722
- Wpf: Allow intrinsic key behavior of menu shortcut keys when item is disabled by @cwensley in #2725
- Update to NUnit 4.3.2 by @cwensley in #2727
- Update FileDialog tests to always show Filename/Filenames even when cancelled by @cwensley in #2729
- Mac: Graphics.FillPath() should use the FillMode of the GraphicsPath by @cwensley in #2728
- Don't quit when running tests with the test app by @cwensley in #2730
- Wpf: Fix crash when adding items to a TreeGridView multiple times when it has focus by @cwensley in #2732
- Mac: Setting Form.Owner shouldn't make it visible if previously hidden by @cwensley in #2733
- Mac: Open/SaveFileDialog fixes by @cwensley in #2738
- Mac: Fix double extension for unknown file types by @cwensley in #2740
- Mac: Updates for obsoleted APIs by @cwensley in #2739
- Mac: Make MacCell/RowGridFormatEventArgs public by @cwensley in #2741
- Mac: fix compile error when using net7 sdk by @cwensley in #2742
- Always recurse style changed to children by @cwensley in #2743
- Update issue templates by @cwensley in #2745
- Measure height of DrawText section by @cwensley in #2748
- Mention documentcontrol in tabcontrol documentation by @Miepee in #2749
- Webview messages by @cwensley in #2752
- Don't clear out owner when hiding a form by @cwensley in #2753
- Mac: Fix parenting windows when not initially activated by @cwensley in #2754
- Mac: Re-add obsolete ToEto(NSColor, bool) apis by @cwensley in #2755
- Fix key handling for windows on Mac/Wpf by @cwensley in #2757
- Add ListBox.Border by @cwensley in #2758
- Gtk: Fix incrementing ProgressBar.Value by one by @cwensley in #2759
- Allow Dialog to be disposed after being shown asynchronously by @cwensley in #2760
- Handle (some) key events with PasswordBox by @cwensley in #2761
- Support Window transparency by @cwensley in #2762
- Gtk: Fix auto sizing of panels in Splitter by @cwensley in #2764
- Mac: Fix firing Shown event for attached dialogs by @cwensley in #2765
- Mac: Don't order window to front when it has an owner by @cwensley in #2766
- Mac: Fix some Open/SaveFileDialog issues by @cwensley in #2768
- GTK: Fix GCed delegate in Webview control by @fakeboboliu in #2770
- WPF: Fix calling GC.TryStartNoCGRegion when already set by @cwensley in #2773
- Mac: Don't show gridlines in TreeGridView when elastically scrolling horizontally. by @cwensley in #2772
- Wpf: Fix child scaling of explicitly sized panels by @cwensley in #2774
- Gtk: Allow clipboard to be disposed by @cwensley in #2775
- WinUI: More control implementations by @cwensley in #2669
- Add ability for WinForms and WPF to run UI on separate thread by @cwensley in #2776
- WPF: Fix Window.BackgroundColor when setting Opacity by @cwensley in #2777
- Wpf: Don't set GlassFrameThickness unless window uses transparency by @cwensley in #2778
- Wpf: Set blur behind only once, and protect against having an zero hwnd by @cwensley in #2779
- Mac: Fix layout of controls when constrained to a larger width by @cwensley in #2780
- Added a null check to prevent crash on Mac by @clicketyclackety in #2781
- Wpf: Fix issue removing a child from its parent by @cwensley in #2782
- Wpf: Don't create source for windows when setting Focusable property by @cwensley in #2783
- Mac: Fix getting proper preferred height of Tree/GridView by @cwensley in #2784
- Mac: Keep AutoSize on an column when Expand is true after resizing by @cwensley in #2785
- Add UseMnemonic and AlwaysShowMnemonic properties by @cwensley in #2786
- Update to .NET 8 by @cwensley in #2787
- Mac: Fix scrollbars so they don't show when not needed by @cwensley in #2788
- Make setting TextBox.Text consistent with the TextChanged event and selection by @cwensley in #2789
- Add TextBox.AlwaysShowSelection by @cwensley in #2790
- Wpf: Fix crash when AlwaysShowSelection is true by @cwensley in #2791
- Mac: Allow TextBox.MapPlatformCommand to work before control is loaded by @cwensley in #2792
- Wpf: Fix calling Focus() on Tree/GridView when it has no selection by @cwensley in #2795
- Mac: Fix crash when using system commands that the base class does not implement by @cwensley in #2796
- Fixes NRE when using a file dialog with a . filter by @cwensley in #2798
- Wpf/WinForms: Keyboard.ModifiersChanged event now uses GETMESSAGE hook. by @cwensley in #2799
- Support Location/Size changed events on wrapped native forms on Windows and Mac by @cwensley in #2800
- Mac: Fix setting ComboBox.Text when it does not exist in the list by @cwensley in #2813
- Mac: Auto size TreeGridView columns when DataStore changes after loaded by @cwensley in #2812
- Fix PropertyGrid label color when scrolling away and back to a selected item by @cwensley in #2815
- Remove PropertyDescriptor wrapper by @cwensley in #2814
- Fix(macOS): Prevent nested app bundle on publish by @AkiSakurai in #2816
- Add Hot Reload for code based and .xeto files by @cwensley in #2811
- Clean up old PCL types and use Trace.WriteLine vs Debug.WriteLine in appropriate locations by @cwensley in #2817
- Add Control.ContextMenu by @cwensley in #2823
New Contributors
- @fakeboboliu made their first contribution in #2770
Full Changelog: 2.9.0...2.10.1