Repository navigation
Is it still possible in AvaloniaUI v12.0.0 to extend the title bar to remove the icon and title on the left, keep the window chrome controls on the right, but overlay custom controls in the top/left area?(On Windows. For macOS, native menus are used so this may not bean issue but have not tested). Noting that I've read through the documented AvaloniaUI v12.0.0 breaking changes with Window Decorations. The first pseudocode example, with AvaloniaUI v11.3.13, shows how to achieve this. The second pseudocode example, used with AvaloniaUI v12.0.0, is an attempt at the same layout. But in the screen capture of this in a running app v12.0.0 app (below), the menu is not hit testable and the title overlaps the menu. Breaking changes in Avalonia 12 - Windows decoration changes AvaloniaUI v11.3.13 - working pseudo codeAvaloniaUI v12.0.0 - attempted pseudo codeScreen capture showing better illustrating the question
Also noticing that AcrylicBlur seems to be broken when ExtendClientAreaToDecorationsHint is true. The image above has that set to True and this image below has that set to False. (I have other code that sets a background layer opacity with AcrylicBlur enabled).
|
Replies: 3 comments 5 replies
|
I think I got it. I attached a fully working sample project file. Note: ExtendClientAreaToDecorationsHint does not work for Linux desktops (until Wayland support?) |
|
As for the
I think that is because the template sets the background other than transparent. See the issue: I edited the template to remove the background from PART_WindowBorder and PART_TitleBar, so AcrylicBlur now works as well. Copy the theme template from Edit:
|
|
Looks like things are going to get easier. With this pull request #21177 along with |





As for the
I think that is because the template sets the background other than transparent. See the issue:
#21082
I edited the template to remove the background from PART_WindowBorder and PART_TitleBar, so AcrylicBlur now works as well.
Copy the theme template from
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Controls/WindowDrawnDecorations.xaml
Edit: