Add HeaderTemplate to DrawerPage header in themes by zdpcdt · Pull Request #21275 · AvaloniaUI/Avalonia (original) (raw)

What does the pull request do?

This pull request updates the DrawerPage.xaml templates in both the Fluent and Simple themes to improve how headers are displayed. The main change is replacing ContentControl with ContentPresenter for title presenters, and ensuring that any provided HeaderTemplate is correctly applied. This enhances template binding flexibility and supports custom header templates.

Improvements to header rendering and template flexibility:

What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues