Shadows are missing in FluentAvalonia 2.1.0
This issue is visible on ContentDialogs
FluentAvalonia 2.0.5:
FluentAvalonia 2.1.0:
Probably related to https://github.com/AvaloniaUI/Avalonia/issues/15602
Do you see the Window shadow on the desktop? What about for actual Popup/Flyout rather than overlay?
This issue is on my radar as well. I don't have shadows of any kind though. If we can narrow it down I'll definitely help fix it.
PR https://github.com/amwx/FluentAvalonia/pull/541 commit "Remove uses of FABorder" added the "BackgroundSizing" attribute to the "BackgroundElement" Border in "ContentDialogStyles.axaml". Setting this to the default value of "CenterBorder" in Avalonia DevTools made the shadows re-appear for me. Maybe the attribute can just be removed.
Ah, thanks for confirming that's what this is. I'll try to prioritize fixing it upstream. It shouldn't be an issue as long as it isn't a performance issue.
- https://github.com/AvaloniaUI/Avalonia/issues/16387
- https://github.com/AvaloniaUI/Avalonia/issues/15602
So my plan here was to switch from BoxShadow over to the newer Effect shadow which works with any background sizing, though it might be slightly less performant than the basic BoxShadow. If a borderbrush needs to be used, I really want to avoid CenterBorder where possible.