So I tried to use BackdropBrush with XamlCompositionBrushBase creating a class called BackdropBlurBrush, but when I call it from XAML It doesn’t find the class. I created the class on the main project. See the error here.
Sample on GitHub: https://github.com/vitorgrs/HostBackdrop/
Your custom composition brush is not a
UIElement
and that's why it cannot be placed onto the XAML visual tree directly.Try adding it as a brush for an element -
You normally want to place your blur brush on top of your background image like this -