-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add .NET 9 what's new #1921
Add .NET 9 what's new #1921
Conversation
Hey @jamesmontemagno thanks for posting this! I had JUST sent an email to the WPF PM asking for information about what's new and started doing my big chore of updating things to .NET 9. Do you care if I take over and edit your file for style and markdown fixes then merge when I'm ready? |
Contributes to #1920 |
Go for it! |
Merging this into a working branch instead of main |
Usage of the AccentColor APIs, update the applicable properties as below: | ||
|
||
```xml | ||
<Button Content="Sample WPF Button" Background="{x:Static SystemColors.AccentColorBrush}" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This usage is not right, it throw's Argument Null exception when the AccentColor is changed in the system. This should be replaced with the following :
<Button Content="Sample WPF Button" Background="{DynamicResource {x:Static SystemColors.AccentColorBrushKey}}" />
3. When the `ThemeMode` is set to None, the Fluent Themes are not applied and the default `Aero2` theme is used. | ||
4. Accent color changes will be adhered to whenever the Fluent Theme is applied irrespective of `ThemeMode`. | ||
5. When the `ThemeMode` is set to a Window, it will take precedence over the Application's `ThemeMode`. In case Window `ThemeMode` is set to None, the window will adhere to Application's `ThemeMode`, even if Application uses Fluent Theme. | ||
6. The default value of `ThemeMod`e is None. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ThemeMod
e --> ThemeMode
|
||
## Hyphen based ligature support | ||
|
||
Based on the WPF community feedback, we have now fixed the issue with Hyphen based ligatures not working in WPF. Summary: A call to LsTxtFmt (Text Formatter) is made when a line is being created. Previously, in LsTxtFmt, glyphing was only performed for regular characters. However, after the fix, glyphing will also be performed for special characters, such as hyphens. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of going into the details like LsTxtFmt, would it be better to provide an image showing the difference ?
|
||
### Setting ThemeMode from Code-Behind | ||
|
||
Since the API is experimental, the usage of ThemeMode from code-behind is a bit restricted. To use ThemeMode from code-behind, the developer either needs to configurethe project to ignore the WPF0001 warning for the project or suppress the warning where needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
configurethe --> configure the
Summary
Describe your changes here.
Fixes #Issue_Number (if available)
Internal previews