|
2 | 2 |
|
3 | 3 | Here's a summary of what's new in WPF in this preview release:
|
4 | 4 |
|
5 |
| -- [Feature](#feature) |
| 5 | +- [XAML Grid Syntax Enhancements](#xaml-grid-syntax-enhancements) |
| 6 | +- [Font and Globalization Updates](#font-and-globalization-updates) |
| 7 | +- [Fluent Theme Improvements](#fluent-theme-improvements) |
| 8 | +- [Performance and Code Quality Improvements](#performance-and-code-quality-improvements) |
6 | 9 |
|
7 | 10 | WPF updates in .NET 10:
|
8 | 11 |
|
9 | 12 | - [What's new in WPF in .NET 10](https://learn.microsoft.com/dotnet/desktop/wpf/whats-new/net100) documentation.
|
10 | 13 |
|
11 |
| -## Feature |
| 14 | +## XAML Grid Syntax Enhancements |
12 | 15 |
|
13 |
| -Something about the feature |
| 16 | +This release introduces a new shorthand syntax for defining `Grid.RowDefinitions` and `Grid.ColumnDefinitions` in XAML, with full support for XAML Hot Reload. |
| 17 | + |
| 18 | +**Example:** |
| 19 | + |
| 20 | +```xml |
| 21 | +<Grid RowDefinitions="Auto,*,Auto" ColumnDefinitions="*, Auto"> |
| 22 | + <TextBlock Text="Row 0, Col 0" Grid.Row="0" Grid.Column="0" /> |
| 23 | + <TextBlock Text="Row 1, Col 1" Grid.Row="1" Grid.Column="1" /> |
| 24 | + <TextBlock Text="Row 2, Col 0" Grid.Row="2" Grid.Column="0" /> |
| 25 | +</Grid> |
| 26 | +``` |
| 27 | + |
| 28 | +This shorthand allows you to specify row and column sizes directly in the `RowDefinitions` and `ColumnDefinitions` attributes, making XAML more concise and readable. |
| 29 | + |
| 30 | +## Font and Globalization Updates |
| 31 | + |
| 32 | +The `simsun-extg` font has been added to improve character rendering, especially for East Asian languages. |
| 33 | + |
| 34 | +## Fluent Theme Improvements |
| 35 | + |
| 36 | +Resolved crashes in the Fluent theme related to the `TextBox` control. Enhanced styling for `SelectionBrush` and `Thumb` controls, and improved visual accuracy by correcting the `Expander` arrow direction in right-to-left (RTL) layouts. |
| 37 | + |
| 38 | +## Performance and Code Quality Improvements |
| 39 | + |
| 40 | +This release includes several improvements to performance and code quality: |
| 41 | + |
| 42 | +- Reduced memory allocations by replacing boxed collections such as `ArrayList`, `Hashtable`, and `IList` with more efficient alternatives like arrays and generic collections. |
| 43 | +- Optimized internal logic by refining parsing routines and removing unused fields in utilities such as `DpiHelper` and `XamlSchema`. |
| 44 | +- Eliminated the static constructor from `KnownColors` to improve runtime performance. |
| 45 | +- Removed legacy or unused code, including the `ReflectionHelper` for WinRT. |
0 commit comments