Skip to content

Commit

Permalink
Update wpf.md (#9328)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno authored May 25, 2024
1 parent 2fb1af1 commit 2c616f4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion release-notes/9.0/preview/preview4/wpf.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,23 @@ For consumer applications built on WPF and running on Windows 11, this feature e
![WPF app running in light mode](media/wpf-light.png)
![WPF app running in dark mode](media/wpf-dark.png)

This can been enabled by adding the following to your `App.xaml`

```xml
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/PresentationFramework.Fluent;component/Resources/Fluent.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
```

## 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.

## Community Contributions

- Thanks [pomianowski](https://github.com/pomianowski) for all the support and collaboration on the theming front.
- Thanks [Jan Kucera](https://github.com/miloush) for all the support and validation on Hyphen-Ligatures.
- Thanks [Jan Kucera](https://github.com/miloush) for all the support and validation on Hyphen-Ligatures.

0 comments on commit 2c616f4

Please sign in to comment.