Skip to content

Commit a954661

Browse files
.NET 10 P5 - WPF (#9918)
* wpf * Add notes --------- Co-authored-by: Andy (Steve) De George <[email protected]>
1 parent ca6dfed commit a954661

File tree

1 file changed

+35
-3
lines changed
  • release-notes/10.0/preview/preview5

1 file changed

+35
-3
lines changed

release-notes/10.0/preview/preview5/wpf.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,44 @@
22

33
Here's a summary of what's new in WPF in this preview release:
44

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)
69

710
WPF updates in .NET 10:
811

912
- [What's new in WPF in .NET 10](https://learn.microsoft.com/dotnet/desktop/wpf/whats-new/net100) documentation.
1013

11-
## Feature
14+
## XAML Grid Syntax Enhancements
1215

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

Comments
 (0)