Repository navigation
Summary
This builds on the huge 2.12 release to go along with the new Eto.DevExtensions 2.13 which brings design time data context previews and template updates to VS Code, Rider, and Visual Studio.
New
- Design-time data context:
d:DataContextsupplies sample data to the designer preview in both xeto and jeto, andControl.IsDesignModetells views and view models when they're in a preview. Jeto also gains{Binding}values. - Templates: generated solutions use
.slnx, a single combined project is now the default (separate projects are an option), templates follow the system theme on Wpf, and VS Code shows the template options when creating a project. HwndFormHandler.Closeis now implemented.
Memory and stability
- Controls bound to a
DataStorecan now be garbage collected, and leaks inTreeGridView/GridViewon Mac are fixed. - Creating widgets such as
BitmaporGraphicson several threads at once no longer throws. LoadCompletenow fires only once per control, and removing controls from aStackLayoutworks correctly.
Fixes
NumericMaskedTextStepper<T>works with every numeric type: unsigned types no longer wrap around at zero,floatandbyte/sbytework, and clearingFormatStringno longer rounds the value.- Wpf: fixed a crash right-clicking a grid row while an edit reloads the rows, content no longer stays under a newly shown scrollbar, oversized tab images are scaled down instead of cropped, WebView2 no longer stays blank after its window is quickly hidden and shown, and controls whose window was closed no longer throw while being measured.
- Mac: fixed a crash closing the WebView print dialog, and updated the supported OS version for single-project macOS builds.
- Single-project and Mac builds now support the newer
UseArtifactsOutputproperty.
What's Changed
🚀 Features
- Wpf: Apply system theme in templates by @cwensley in #3075
- Show options when creating templates in vscode by @cwensley in #3074
- Implemented HwndFormHandler.Cose by @clicky in #3079
- Weakly subscribe to DataStore so controls can be collected by @cwensley in #3083
- Template updates by @cwensley in #3078
- Add design-time data context and jeto bindings by @cwensley in #3087
🐛 Bug Fixes
- Bump supported OS version for macOS single project builds by @cwensley in #3077
- Fix using newer UseArtifactsOutput property for single project and Mac output by @cwensley in #3076
- Ensure LoadComplete is only fired once on all controls by @cwensley in #3080
- Fix detaching controls from StackLayout by @cwensley in #3081
- Mac: Attempt to fix intermittent test errors by @cwensley in #3082
- Mac: Fix leaks in Tree/GridView by @cwensley in #3084
- Add tests for gridview item gc issues by @cwensley in #3085
- Make handler lookup thread-safe by @cwensley in #3086
NumericMaskedTextStepper<T>: Fix missing cast forfloatby @gonX in #3089- NumericMaskedTextStepper: Test every numeric type and fix stepping issues by @cwensley in #3090
- Load test images from the Eto.Test assembly explicitly by @cwensley in #3091
- Wpf: Fix crash right-clicking a grid row when committing an edit reloads the rows by @cwensley in #3092
- Wpf: Re-measure scrollable content when a vertical scrollbar appears by @cwensley in #3093
- Wpf: Scale down oversized tab page images instead of cropping by @cwensley in #3094
- Mac: Fix crash closing WebView print dialog after a GC by @cwensley in #3096
- Wpf: Fix WebView2 staying blank after its window is quickly hidden and shown by @cwensley in #3097
Other Changes
- bump version to 2.13.0-dev by @github-actions[bot] in #3072
- Wpf: Don't read a disposed parent window when measuring a grid by @cwensley in #3095
New Contributors
Full Changelog: 2.12.0...2.13.0